]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/mips/configure
sim: use -Werror when probing for supported warning flags
[thirdparty/binutils-gdb.git] / sim / mips / configure
index e0612f7931fc5f282bd2cf82e36190902d106f3d..72e1ee3ff49cc39b5832b766b8e35946d398ee67 100755 (executable)
@@ -12057,7 +12057,7 @@ $as_echo_n "checking compiler warning flags... " >&6; }
        -Werr*) WERROR_CFLAGS=-Werror ;;
        *) # Check that GCC accepts it
            saved_CFLAGS="$CFLAGS"
-           CFLAGS="$CFLAGS $w"
+           CFLAGS="$CFLAGS -Werror $w"
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */