summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-09-01 12:35:00 -0600
committerGary V. Vaughan <gary@gnu.org>2013-09-18 20:53:32 +0700
commit32e2df2076b380916a3cb0d3ec2b0478cce38c21 (patch)
tree333046b35c3415404df4e26db7ecf88e80986e4b
parent4c0e23155dbd417bc6ede1d03107e8870aca60fc (diff)
downloadm4-32e2df2076b380916a3cb0d3ec2b0478cce38c21.tar.gz
build: add more compiler checking
Enable a bit more gcc warning coverage. * configure.ac (nw): Turn on some warnings that no longer trigger a gcc warning, or where we reduce the scope of unwarned code. Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--configure.ac9
1 files changed, 3 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 3c93cdf3..17cce617 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,18 +115,15 @@ if test "$gl_gcc_warnings" = yes; then
AC_SUBST([WERROR_CFLAGS])
nw=
- nw="$nw -Waggregate-return" # C90 is anachronistic
+ nw="$nw -Waggregate-return" # K&R is anachronistic
+ nw="$nw -Wtraditional-conversion" # K&R is anachronistic
+ nw="$nw -Wundef" # K&R is anachronistic
nw="$nw -Wlong-long" # C90 is anachronistic
- nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
- nw="$nw -Wtraditional" # Warns on #elif which we use often
nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
nw="$nw -Wpadded" # Our structs are not packed
- nw="$nw -Wredundant-decls" # Gnulib has multiple decls
nw="$nw -Wformat-nonliteral" # Needed in builtin.c
- nw="$nw -Wunreachable-code" # Needed in output.c
nw="$nw -Wconversion" # Too many warnings for now
nw="$nw -Wsign-conversion" # Too many warnings for now
- nw="$nw -Wtraditional-conversion" # Too many warnings for now
nw="$nw -Wcast-qual" # Too many warnings for now
nw="$nw -Wswitch-enum" # Too many warnings for now
# This, $nw, is the list of warnings we disable.