diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 01:16:11 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-09 09:19:37 -0500 |
commit | bf470982f998b2b18545cc335f469a20e457acdd (patch) | |
tree | 9d11918cdd5c02cdcff059b29005e05c6b616dee /sim/ft32 | |
parent | 0a94990bf64a82bdf73960fec1b47fef7c6a6ced (diff) | |
download | fsf-binutils-gdb-bf470982f998b2b18545cc335f469a20e457acdd.zip fsf-binutils-gdb-bf470982f998b2b18545cc335f469a20e457acdd.tar.gz fsf-binutils-gdb-bf470982f998b2b18545cc335f469a20e457acdd.tar.bz2 |
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.
Diffstat (limited to 'sim/ft32')
-rw-r--r-- | sim/ft32/ChangeLog | 4 | ||||
-rwxr-xr-x | sim/ft32/configure | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sim/ft32/ChangeLog b/sim/ft32/ChangeLog index 48235fb..ad31e24 100644 --- a/sim/ft32/ChangeLog +++ b/sim/ft32/ChangeLog @@ -1,3 +1,7 @@ +2021-01-09 Mike Frysinger <vapier@gentoo.org> + + * configure: Regenerate. + 2021-01-08 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/ft32/configure b/sim/ft32/configure index 94c3a43..4defb86 100755 --- a/sim/ft32/configure +++ b/sim/ft32/configure @@ -13684,11 +13684,9 @@ 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 + if test "${ERROR_ON_WARNING}" = yes ; then + WERROR_CFLAGS="-Werror" + fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wpointer-sign \ |