]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/msp430/configure
sim: use -Werror when probing for supported warning flags
[thirdparty/binutils-gdb.git] / sim / msp430 / configure
index 461f80a181bd6bae3f4a0957ee3dfd6ef498ef91..7484bd8fe2646028eb24ebd3230422e54bee734d 100755 (executable)
@@ -12072,7 +12072,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.  */