build: turn off set-but-not-used variable warnings in new GCC
authorDan Williams <dcbw@redhat.com>
Mon, 24 Jan 2011 21:57:33 +0000 (15:57 -0600)
committerDan Williams <dcbw@redhat.com>
Mon, 24 Jan 2011 21:57:33 +0000 (15:57 -0600)
m4/compiler_warnings.m4

index 6cea2f7..be69af2 100644 (file)
@@ -10,7 +10,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
        for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
                      -Wdeclaration-after-statement -Wstrict-prototypes \
                      -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
-                     -fno-strict-aliasing; do
+                     -fno-strict-aliasing -Wno-unused-but-set-variable; do
                SAVE_CFLAGS="$CFLAGS"
                CFLAGS="$CFLAGS $option"
                AC_MSG_CHECKING([whether gcc understands $option])