summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2016-12-17 21:50:50 -0500
committerPaul Smith <psmith@gnu.org>2016-12-25 18:18:45 -0500
commitb13dcfe501ce343ab107c29acc3d334310ebbcd1 (patch)
treea70f4838dda237faf3c4b228d77eda9d352c9a2d /maintMakefile
parent212cb00923606c89a0a00eff445f91405e5e459d (diff)
downloadmake-git-b13dcfe501ce343ab107c29acc3d334310ebbcd1.tar.gz
Add more GCC warnings to the maintainer build.
* arscan.c: [SV 49112] Correct TEST printf() formatting. Recommended by Jaak Ristioja <jaak@ristioja.ee> * hash.c: Correct fprintf() formatting. * maintMakefile: Add extra GCC warning flags.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/maintMakefile b/maintMakefile
index a275b88c..cab8dd6a 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -20,7 +20,14 @@ GNUWEBDIR ?= $(SRCROOTDIR)/gnu-www
MAKEWEBDIR ?= $(SRCROOTDIR)/make/make-web
# We like mondo-warnings!
-AM_CFLAGS += -Wall -Wwrite-strings -Wextra -Wdeclaration-after-statement -Wshadow -Wpointer-arith -Wbad-function-cast
+AM_CFLAGS += -Wall -Wextra -Werror -Wwrite-strings -Wshadow -Wpointer-arith \
+ -Wdeclaration-after-statement -Wbad-function-cast -Wformat-security \
+ -Wtype-limits -Wunused-but-set-parameter -Wlogical-op \
+ -Wignored-qualifiers -Wformat-signedness -Wduplicated-cond
+
+# Unfortunately the Guile headers are sometimes broken. Convince GCC
+# to treat them as system headers so warnings are ignored.
+GUILE_CFLAGS := $(patsubst -I%,-isystem %,$(GUILE_CFLAGS))
MAKE_MAINTAINER_MODE := -DMAKE_MAINTAINER_MODE
AM_CPPFLAGS += $(MAKE_MAINTAINER_MODE)