From: Jim Meyering Date: Sun, 17 May 2009 11:47:39 +0000 (+0200) Subject: build: avoid new warnings from gcc 4.5.0 20090517 X-Git-Tag: v7.5~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2726826c720d9387f631c35e9c8401abd75a1087;p=platform%2Fupstream%2Fcoreutils.git build: avoid new warnings from gcc 4.5.0 20090517 * configure.ac: Add an explicit -Wno-logical-op, now that not listing -Wlogical-op is insufficient. --- diff --git a/configure.ac b/configure.ac index b738d4a..68a940c 100644 --- a/configure.ac +++ b/configure.ac @@ -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])