summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2020-05-08 15:58:23 +0200
committerAndy Wingo <wingo@pobox.com>2020-05-08 16:03:32 +0200
commit220934c49d2629ebf826cc377541694334f44e7e (patch)
treeaf0e30ae74e913a0386709e6ba23cd5cd12f2c1c /am
parent116f94d661b61e297b733363b49042c6c14169b4 (diff)
downloadguile-220934c49d2629ebf826cc377541694334f44e7e.tar.gz
Wire up simplified warning levels in "guild compile"
* am/guilec (GUILE_WARNINGS): * am/bootstrap.am (GUILE_WARNINGS): Explictly default to -W1. * bootstrap/Makefile.am (GUILE_WARNINGS): Set to -Wnone, as the meaning of "no -W flags" has changed to be effectively -W1. * module/scripts/compile.scm (%options): Adapt to parse -Wnone, -W2, and so on. (parse-args): Default to (default-warning-level). (show-warning-help): Add more warning help. (compile): Pass #:warning-level.
Diffstat (limited to 'am')
-rw-r--r--am/bootstrap.am2
-rw-r--r--am/guilec2
2 files changed, 2 insertions, 2 deletions
diff --git a/am/bootstrap.am b/am/bootstrap.am
index 43f0f0482..cc62e4026 100644
--- a/am/bootstrap.am
+++ b/am/bootstrap.am
@@ -18,7 +18,7 @@
## Fifth Floor, Boston, MA 02110-1301 USA
# These variables can be set before you include bootstrap.am.
-GUILE_WARNINGS ?= -Wunbound-variable -Warity-mismatch -Wformat
+GUILE_WARNINGS ?= -W1
GUILE_OPTIMIZATIONS ?= -O2
GUILE_TARGET ?= $(host)
GUILE_BUILD_TAG ?= BOOTSTRAP
diff --git a/am/guilec b/am/guilec
index fa2054eeb..94a13ff58 100644
--- a/am/guilec
+++ b/am/guilec
@@ -1,7 +1,7 @@
# -*- makefile -*-
GOBJECTS = $(SOURCES:%.scm=%.go) $(ELISP_SOURCES:%.el=%.go)
-GUILE_WARNINGS = -Wunbound-variable -Wmacro-use-before-definition -Warity-mismatch -Wformat
+GUILE_WARNINGS = -W1
moddir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)/$(modpath)
nobase_mod_DATA = $(SOURCES) $(ELISP_SOURCES) $(NOCOMP_SOURCES)