From 50ca12c28d2f0b3df73a026a1fecea294c4cb42c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 17 May 2009 11:43:21 +0200 Subject: [PATCH] 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". --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8b05b11..b738d4a 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 -- 2.7.4