mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-08 22:50:27 +02:00
Add -Wshadowed-toplevel.
* module/language/tree-il/analyze.scm (shadowed-toplevel-analysis): New variable. * module/language/tree-il/compile-cps.scm (%warning-passes): Add it. * module/system/base/message.scm (%warning-types): Add it. * test-suite/tests/tree-il.test ("warnings")["shadowed-toplevel"]: New test prefix. * module/ice-9/boot-9.scm (%auto-compilation-options): Add it. * doc/ref/api-evaluation.texi (Compilation): Add 'shadowed-toplevel' and 'macro-use-before-definition'.
This commit is contained in:
parent
04aa6d1fb7
commit
c6f70e4b04
6 changed files with 130 additions and 5 deletions
|
@ -3665,7 +3665,8 @@ but it fails to load."
|
|||
|
||||
(define %auto-compilation-options
|
||||
;; Default `compile-file' option when auto-compiling.
|
||||
'(#:warnings (unbound-variable macro-use-before-definition arity-mismatch
|
||||
'(#:warnings (unbound-variable shadowed-toplevel
|
||||
macro-use-before-definition arity-mismatch
|
||||
format duplicate-case-datum bad-case-datum)))
|
||||
|
||||
(define* (load-in-vicinity dir file-name #:optional reader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue