sim/rx: enable build with warnings
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 1 Feb 2021 11:39:39 +0000 (11:39 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
The rx simulator now has no build warnings.  Delete the call to
SIM_AC_OPTION_WARNINGS in configure.ac, the default yes will be
provided by SIM_AC_OUTPUT.

sim/rx/ChangeLog:

* configure: Regenerate.
* configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.

sim/rx/ChangeLog
sim/rx/configure
sim/rx/configure.ac

index b3d76be02db96f021ff962b71e1685617f5296ec..c92e41cd94bfcc765abde1922b544969a7fa0db2 100644 (file)
@@ -1,3 +1,8 @@
+2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * configure: Regenerate.
+       * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
+
 2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * mem.c (mem_put_blk): Rename parameter, add cast from parameter
index 7e2ac7b948d01651276584a62ff0e23fe51e384b..1781df8a021c007403d11eeddac0c1846dd1c68e 100755 (executable)
@@ -13603,6 +13603,9 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
 fi
 
 WERROR_CFLAGS=""
+  if test "${ERROR_ON_WARNING}" = yes ; then
+    WERROR_CFLAGS="-Werror"
+  fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wpointer-sign \
index 6c14434f4af29b846e4f1075f432894b7a3fe6f1..1bdb5abc277358846da94e421e1ab0a127d729ea 100644 (file)
@@ -22,7 +22,6 @@ AC_INIT(Makefile.in)
 sinclude(../common/acinclude.m4)
 
 SIM_AC_COMMON
-SIM_AC_OPTION_WARNINGS(no)
 
 AC_CHECK_HEADERS(getopt.h)