]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/mcore/configure
sim: use -Werror when probing for supported warning flags
[thirdparty/binutils-gdb.git] / sim / mcore / configure
index 5fac5b82177e48b35ae4f2547166559c2ff9c44d..a4881e9fffe4937f9a8ae6fbb49487a6e3cbbdbd 100755 (executable)
@@ -12069,7 +12069,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.  */