From bf470982f998b2b18545cc335f469a20e457acdd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 Jan 2021 01:16:11 -0500 Subject: sim: enable -Werror by default for some arches We've had this off for a long time because the sim code was way too full of warnings for it to be feasible. However, I've cleaned things up significantly from when this was first merged, and we can start to turn this around. Change the macro to enable -Werror by default, and allow ports to opt out. New ports will get it automatically (and we can push back on them if they try to turn it off). Also turn it off for the few ports that still hit warnings for me. All the rest will get the new default, and we'll wait for feedback if/when new issues come up. --- sim/m32c/ChangeLog | 5 +++++ sim/m32c/configure | 5 ----- sim/m32c/configure.ac | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sim/m32c') diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 1179044..ccaae94 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,8 @@ +2021-01-09 Mike Frysinger + + * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no". + * configure: Regenerate. + 2021-01-08 Mike Frysinger * configure: Regenerate. diff --git a/sim/m32c/configure b/sim/m32c/configure index 29df076..18cd590 100755 --- a/sim/m32c/configure +++ b/sim/m32c/configure @@ -13586,11 +13586,6 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then fi WERROR_CFLAGS="" -if test "${ERROR_ON_WARNING}" = yes ; then -# NOTE: Disabled in the sim dir due to most sims generating warnings. -# WERROR_CFLAGS="-Werror" - true -fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wpointer-sign \ diff --git a/sim/m32c/configure.ac b/sim/m32c/configure.ac index 4357419..9477c23 100644 --- a/sim/m32c/configure.ac +++ b/sim/m32c/configure.ac @@ -23,7 +23,7 @@ sinclude(../common/acinclude.m4) SIM_AC_COMMON -SIM_AC_OPTION_WARNINGS +SIM_AC_OPTION_WARNINGS(no) AC_CHECK_HEADERS(sys/select.h termios.h sys/socket.h netinet/in.h netinet/tcp.h) -- cgit v1.1