diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-05-16 14:31:37 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-05-16 14:31:37 +0200 |
| commit | ce92d269fea0a2bfac0ac20414f77127d2f07500 (patch) | |
| tree | 5a740f07d8457920ce49ee43e329a7abc7b6c61e | |
| parent | 5a3429bcc52a47ca9c879b9ace092eecddeed300 (diff) | |
ui: Disable Guile deprecation warnings by default.
* guix/ui.scm (initialize-guix): Call (debug-disable 'warn-deprecated)
when "GUILE_WARN_DEPRECATED" is not set.
| -rw-r--r-- | guix/ui.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/ui.scm b/guix/ui.scm index edd04daa81f..9e0fa26d194 100644 --- a/guix/ui.scm +++ b/guix/ui.scm | |||
| @@ -302,6 +302,13 @@ exiting. ARGS is the list of arguments received by the 'throw' handler." | |||
| 302 | 302 | ||
| 303 | (define (initialize-guix) | 303 | (define (initialize-guix) |
| 304 | "Perform the usual initialization for stand-alone Guix commands." | 304 | "Perform the usual initialization for stand-alone Guix commands." |
| 305 | ;; By default don't annoy users with deprecation warnings. In practice, | ||
| 306 | ;; 'define-deprecated' in (ice-9 deprecated) arranges so that those warnings | ||
| 307 | ;; are emitted at expansion-time only, but there are cases where they could | ||
| 308 | ;; slip through, for instance when interpreting code. | ||
| 309 | (unless (getenv "GUILE_WARN_DEPRECATED") | ||
| 310 | (debug-disable 'warn-deprecated)) | ||
| 311 | |||
| 305 | (install-locale) | 312 | (install-locale) |
| 306 | (textdomain %gettext-domain) | 313 | (textdomain %gettext-domain) |
| 307 | 314 | ||
