summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-08 01:12:35 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-08 01:12:35 +0100
commit19977b7ce0f112534feb75c2eb2d497e596bae4e (patch)
tree179a060e6200fdeb0421f6a241a8ef20a51c11da /am
parentbd36e901321eee0310d9ad14ff698ec85c006d26 (diff)
Compile with `-Warity-mismatch'.
* am/guilec (GUILE_WARNINGS): New variable; add `-Warity-mismatch'. (.scm.go): Use it.
Diffstat (limited to 'am')
-rw-r--r--am/guilec4
1 files changed, 3 insertions, 1 deletions
diff --git a/am/guilec b/am/guilec
index 00366d85e..fec1d364b 100644
--- a/am/guilec
+++ b/am/guilec
@@ -1,6 +1,8 @@
# -*- makefile -*-
GOBJECTS = $(SOURCES:%.scm=%.go)
+GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch
+
moddir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)/$(modpath)
nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
ccachedir = $(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/ccache/$(modpath)
@@ -32,4 +34,4 @@ SUFFIXES = .scm .go
.scm.go:
GUILE_AUTO_COMPILE=0 \
$(top_builddir)/meta/uninstalled-env \
- guile-tools compile -Wunbound-variable -o "$@" "$<"
+ guile-tools compile $(GUILE_WARNINGS) -o "$@" "$<"