ui: Disable Guile deprecation warnings by default.
* guix/ui.scm (initialize-guix): Call (debug-disable 'warn-deprecated) when "GUILE_WARN_DEPRECATED" is not set.
This commit is contained in:
parent
5a3429bcc5
commit
ce92d269fe
1 changed files with 7 additions and 0 deletions
|
@ -302,6 +302,13 @@ (define (install-locale)
|
||||||
|
|
||||||
(define (initialize-guix)
|
(define (initialize-guix)
|
||||||
"Perform the usual initialization for stand-alone Guix commands."
|
"Perform the usual initialization for stand-alone Guix commands."
|
||||||
|
;; By default don't annoy users with deprecation warnings. In practice,
|
||||||
|
;; 'define-deprecated' in (ice-9 deprecated) arranges so that those warnings
|
||||||
|
;; are emitted at expansion-time only, but there are cases where they could
|
||||||
|
;; slip through, for instance when interpreting code.
|
||||||
|
(unless (getenv "GUILE_WARN_DEPRECATED")
|
||||||
|
(debug-disable 'warn-deprecated))
|
||||||
|
|
||||||
(install-locale)
|
(install-locale)
|
||||||
(textdomain %gettext-domain)
|
(textdomain %gettext-domain)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue