compile: Enable 'shadowed-toplevel' warning.

* guix/build/compile.scm (%warnings): Add 'shadowed-toplevel'.
This commit is contained in:
Ludovic Courtès 2019-06-25 14:54:58 +02:00
parent 0e1c5ccc3b
commit 77c2899cd4
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@
;; strings" due to the fact that we use 'G_' instead of '_'. We'll need ;; strings" due to the fact that we use 'G_' instead of '_'. We'll need
;; help from Guile to solve this. ;; help from Guile to solve this.
'(unsupported-warning unbound-variable arity-mismatch '(unsupported-warning unbound-variable arity-mismatch
macro-use-before-definition)) ;new in 2.2 macro-use-before-definition ;new in 2.2
shadowed-toplevel)) ;new in 2.2.5
(define (optimization-options file) (define (optimization-options file)
"Return the default set of optimizations options for FILE." "Return the default set of optimizations options for FILE."