]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/riscv/configure
sim: move -Werror disabling to Makefile
[thirdparty/binutils-gdb.git] / sim / riscv / configure
index cdbedcceabc3111d02bfa8f618d8723139b3d1ec..94bf447bedef639827fead7ecf79f2f55f50ac19 100755 (executable)
@@ -11243,15 +11243,14 @@ if test "${enable_werror+set}" = set; then :
 fi
 
 
 fi
 
 
-# Enable -Werror by default when using gcc
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
-    ERROR_ON_WARNING=yes
+  ERROR_ON_WARNING=yes
 fi
 
 WERROR_CFLAGS=""
 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 \
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wpointer-sign \