From 982c3a65ca5dbea8d6de3afd934f0a06fef54383 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 18 Jun 2021 02:14:52 -0400 Subject: sim: move -Werror disabling to Makefile For the ports that still don't build with -Werror, rather than disable the flag at configure time, do it at make time. This will allow us to unify these tests in the common sim configure script. --- sim/m68hc11/ChangeLog | 4 ++++ sim/m68hc11/configure | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'sim/m68hc11') diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index dd9ccce..fffa98c 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,5 +1,9 @@ 2021-06-18 Mike Frysinger + * configure: Regenerate. + +2021-06-18 Mike Frysinger + * dv-m68hc11eepr.c: Include sim-signal.h. * interrupts.c, m68hc11_sim.c: Likewise. * sim-main.h: Delete sim-signal.h include. diff --git a/sim/m68hc11/configure b/sim/m68hc11/configure index 1ed8c04..e24c650 100755 --- a/sim/m68hc11/configure +++ b/sim/m68hc11/configure @@ -11248,15 +11248,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 \ -- cgit v1.1