summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-06-25 18:08:28 +0200
committerAndy Wingo <wingo@pobox.com>2016-06-25 18:08:28 +0200
commit3e719e0a35cf383d4f7fa3823494f01e244135e9 (patch)
treee77f48e5930adf590e119221540788d6c2853344 /am
parent31c76f16c6f13cf2d55c7f4830e874ed702ad777 (diff)
downloadguile-3e719e0a35cf383d4f7fa3823494f01e244135e9.tar.gz
Add -Wmacro-use-before-definition
* module/ice-9/boot-9.scm (%auto-compilation-options): * am/guilec (GUILE_WARNINGS): Add -Wmacro-use-before-definition. * module/language/tree-il/analyze.scm (unbound-variable-analysis): Use match-lambda. (<macro-use-info>, macro-use-before-definition-analysis): New analysis. * module/system/base/message.scm (%warning-types): Add macro-use-before-definition warning type. * module/language/tree-il/compile-cps.scm (%warning-passes): Add support for macro-use-before-definition.
Diffstat (limited to 'am')
-rw-r--r--am/guilec2
1 files changed, 1 insertions, 1 deletions
diff --git a/am/guilec b/am/guilec
index 5ef07faa4..7ab9cccb7 100644
--- a/am/guilec
+++ b/am/guilec
@@ -1,7 +1,7 @@
# -*- makefile -*-
GOBJECTS = $(SOURCES:%.scm=%.go) $(ELISP_SOURCES:%.el=%.go)
-GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
+GUILE_WARNINGS = -Wunbound-variable -Wmacro-use-before-definition -Warity-mismatch -Wformat
moddir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)/$(modpath)
nobase_mod_DATA = $(SOURCES) $(ELISP_SOURCES) $(NOCOMP_SOURCES)