summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-05-17 16:35:13 +0200
committerJim Meyering <meyering@redhat.com>2009-05-17 16:35:13 +0200
commit487f91a12086dc98b330282f8846c75cf4153fb7 (patch)
tree1d1a1d29ae9ed27dfc608a8f565d025ba76376e2
parent8eab76d7f965afda789443f0d33b2156546327eb (diff)
downloadidutils-487f91a12086dc98b330282f8846c75cf4153fb7.tar.gz
idutils-487f91a12086dc98b330282f8846c75cf4153fb7.tar.bz2
idutils-487f91a12086dc98b330282f8846c75cf4153fb7.zip
build: adjust warnings
* configure.ac: Enable a few warning options that didn't need to be disabled; disable -Wlong-long (for latest gcc snapshot).
-rw-r--r--configure.ac8
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 92693fe..e91b6a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,7 @@ if test "$gl_gcc_warnings" = yes; then
# Add many warnings, except some...
nw="$nw -Wdeclaration-after-statement" # too useful to forbid
nw="$nw -Waggregate-return" # anachronistic
+ nw="$nw -Wlong-long" # C90 is anachronistic (lib/gethrxtime.h)
nw="$nw -Wc++-compat" # We don't care about C++ compilers
nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
nw="$nw -Wtraditional" # Warns on #elif which we use often
@@ -56,12 +57,7 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wswitch-enum" # Too many warnings for now
nw="$nw -Wswitch-default" # Too many warnings for now
# things I might fix soon:
- nw="$nw -Wfloat-equal" # sort.c, seq.c
- nw="$nw -Wmissing-format-attribute" # copy.c
- nw="$nw -Wunsafe-loop-optimizations" # a few src/*.c
- nw="$nw -Winline" # system.h's readdir_ignoring_dot_and_dotdot
- nw="$nw -Wstrict-overflow" # expr.c, pr.c, tr.c, factor.c
- # ?? -Wstrict-overflow
+ nw="$nw -Wstrict-overflow" # fid.c
gl_MANYWARN_ALL_GCC([ws])
gl_MANYWARN_COMPLEMENT([ws], [$ws], [$nw])