]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/moxie/configure
sim: move -Werror disabling to Makefile
[thirdparty/binutils-gdb.git] / sim / moxie / configure
index 26ccbb3d01e04bfe49da2dfa03d056d8fcdffdc6..de69f08cfb9202a334ccbf3c363fb68c0e840ab6 100755 (executable)
@@ -11243,15 +11243,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 \