summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-05-17 11:43:21 +0200
committerJim Meyering <meyering@redhat.com>2009-05-17 13:59:12 +0200
commit50ca12c28d2f0b3df73a026a1fecea294c4cb42c (patch)
tree31ba12fa55e618d8b3be8bf8bdb503e05cb6ce07
parent242f801adff974b118866dcf0157ce3808703870 (diff)
downloadcoreutils-50ca12c28d2f0b3df73a026a1fecea294c4cb42c.tar.xz
build: turn off -Wlong-long
* configure.ac: With --enable-gcc-warnings, -Wlong-long would cause compilation failure due to inclusion of lib/gethrxtime.h. Initialize "nw".
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8b05b115e..b738d4a91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,9 +60,11 @@ if test "$gl_gcc_warnings" = yes; then
gl_WARN_ADD([-Werror], [WERROR_CFLAGS])
AC_SUBST([WERROR_CFLAGS])
- # Add many warnings, except some...
+ nw=
+ # This, $nw, is the list of warnings we disable.
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