diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-18 02:14:52 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-18 10:15:15 -0400 |
commit | 982c3a65ca5dbea8d6de3afd934f0a06fef54383 (patch) | |
tree | 416ece9ed53e3350c23a09b381139bdc4cc9c6d7 /sim/aarch64 | |
parent | 3f8414df7a533cccd39bf19c0e311975d9ededde (diff) | |
download | gdb-982c3a65ca5dbea8d6de3afd934f0a06fef54383.zip gdb-982c3a65ca5dbea8d6de3afd934f0a06fef54383.tar.gz gdb-982c3a65ca5dbea8d6de3afd934f0a06fef54383.tar.bz2 |
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.
Diffstat (limited to 'sim/aarch64')
-rw-r--r-- | sim/aarch64/ChangeLog | 4 | ||||
-rwxr-xr-x | sim/aarch64/configure | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sim/aarch64/ChangeLog b/sim/aarch64/ChangeLog index f5d1990..97bea6d 100644 --- a/sim/aarch64/ChangeLog +++ b/sim/aarch64/ChangeLog @@ -1,5 +1,9 @@ 2021-06-18 Mike Frysinger <vapier@gentoo.org> + * configure: Regenerate. + +2021-06-18 Mike Frysinger <vapier@gentoo.org> + * cpustate.c: Include sim-signal.h. * memory.c, simulator.c: Likewise. diff --git a/sim/aarch64/configure b/sim/aarch64/configure index 2c8a6e0..371c355 100755 --- a/sim/aarch64/configure +++ b/sim/aarch64/configure @@ -11149,15 +11149,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 \ |