r23402 - gnucash/trunk/src/scm - Turn off the scheme compiler's "possibly unbound variable" warnings.

Mike Alexander mta at code.gnucash.org
Sat Nov 16 17:59:01 EST 2013


Author: mta
Date: 2013-11-16 17:59:00 -0500 (Sat, 16 Nov 2013)
New Revision: 23402
Trac: http://svn.gnucash.org/trac/changeset/23402

Modified:
   gnucash/trunk/src/scm/main.scm
Log:
Turn off the scheme compiler's "possibly unbound variable" warnings.
In guile 2.0 we get nearly 7500 of them loading the scheme files.

Modified: gnucash/trunk/src/scm/main.scm
===================================================================
--- gnucash/trunk/src/scm/main.scm	2013-11-16 16:37:58 UTC (rev 23401)
+++ gnucash/trunk/src/scm/main.scm	2013-11-16 22:59:00 UTC (rev 23402)
@@ -23,6 +23,14 @@
          (>= (string->number (minor-version)) 8))
     (default-duplicate-binding-handler 'last))
 
+;; Turn off the scheme compiler's "possibly unbound variable" warnings.
+;; In guile 2.0 we get nearly 7500 of them loading the scheme files.
+;; This is the default value for auto-compilation-options without "unbound-variable".
+;; See module/ice-9/boot-9.scm  */
+(if (>= (string->number (major-version)) 2)
+    (set! %auto-compilation-options 
+          '(#:warnings (arity-mismatch format duplicate-case-datum bad-case-datum))))
+
 (use-modules (gnucash core-utils))
 
 ;; Load the srfis (eventually, we should see where these are needed



More information about the gnucash-changes mailing list