build: avoid new warnings from gcc 4.5.0 20090517
authorJim Meyering <meyering@redhat.com>
Sun, 17 May 2009 11:47:39 +0000 (13:47 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 17 May 2009 11:59:12 +0000 (13:59 +0200)
* configure.ac: Add an explicit -Wno-logical-op,
now that not listing -Wlogical-op is insufficient.

configure.ac

index b738d4a..68a940c 100644 (file)
@@ -99,6 +99,11 @@ if test "$gl_gcc_warnings" = yes; then
   gl_WARN_ADD([-Wno-sign-compare])     # Too many warnings for now
   gl_WARN_ADD([-Wno-pointer-sign])     # Too many warnings for now
   gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
+
+  # In spite of excluding -Wlogical-op above, it is enabled, as of
+  # gcc 4.5.0 20090517, and it provokes warnings in cat.c, dd.c, truncate.c
+  gl_WARN_ADD([-Wno-logical-op])
+
   gl_WARN_ADD([-fdiagnostics-show-option])
 
   AC_SUBST([WARN_CFLAGS])