]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/bfin/configure
sim: move -Werror disabling to Makefile
[thirdparty/binutils-gdb.git] / sim / bfin / configure
index d4aa3a21f0cd2002dbb958a1b0341a456f0127a9..1344e1e5f894f50ea7d985d265a19a1effaad7f9 100755 (executable)
@@ -11579,15 +11579,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 \