]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/h8300/configure
sim: move -Werror disabling to Makefile
[thirdparty/binutils-gdb.git] / sim / h8300 / configure
index 2c8a6e0abab41163a65cb93bf185b470996d64a2..371c3553ce03e240293dbd0f081cc3c6aa3306e1 100755 (executable)
@@ -11149,15 +11149,14 @@ if test "${enable_werror+set}" = set; then :
 fi
 
 
-# Enable -Werror by default when using gcc
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
-    ERROR_ON_WARNING=yes
+  ERROR_ON_WARNING=yes
 fi
 
 WERROR_CFLAGS=""
-  if test "${ERROR_ON_WARNING}" = yes ; then
-    WERROR_CFLAGS="-Werror"
-  fi
+if test "${ERROR_ON_WARNING}" = yes ; then
+  WERROR_CFLAGS="-Werror"
+fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wpointer-sign \