[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: ui: Disable Guile deprecation warnings by default.
From: |
Ludovic Courtès |
Subject: |
03/03: ui: Disable Guile deprecation warnings by default. |
Date: |
Tue, 16 May 2017 08:35:25 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ce92d269fea0a2bfac0ac20414f77127d2f07500
Author: Ludovic Courtès <address@hidden>
Date: Tue May 16 14:31:37 2017 +0200
ui: Disable Guile deprecation warnings by default.
* guix/ui.scm (initialize-guix): Call (debug-disable 'warn-deprecated)
when "GUILE_WARN_DEPRECATED" is not set.
---
guix/ui.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/ui.scm b/guix/ui.scm
index edd04da..9e0fa26 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."
(define (initialize-guix)
"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)
(textdomain %gettext-domain)