Fix the check for the -Wno-unused-but-set-variable gcc option.
authorZoltan Varga <vargaz@gmail.com>
Tue, 7 Jun 2011 19:55:22 +0000 (21:55 +0200)
committerZoltan Varga <vargaz@gmail.com>
Tue, 7 Jun 2011 20:04:59 +0000 (22:04 +0200)
configure.in

index c6289981b77f4f96e7d9f37bfff753744470d227..ef07f7c755f33f086334dda629f0d1796251f054 100644 (file)
@@ -497,7 +497,8 @@ if test x"$GCC" = xyes; then
                ])
 
                ORIG_CFLAGS=$CFLAGS
-               CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
+               # Check for the normal version, since gcc ignores unknown -Wno options
+               CFLAGS="$CFLAGS -Wunused-but-set-variable"
                AC_MSG_CHECKING(for -Wno-unused-but-set-variable option to gcc)
                AC_TRY_COMPILE([], [
                                                   void main () { }