diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-23 01:00:08 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-23 01:21:23 -0500 |
commit | 4da6be3f1ad66987b7e072e578183798b3c29cb0 (patch) | |
tree | 835539aec6651d2ff2058ec97bb9034bf13657e0 /sim/cris | |
parent | 576d2c97d8de26d1ab5a2058e8ba4ffd00b8096d (diff) | |
download | gdb-4da6be3f1ad66987b7e072e578183798b3c29cb0.zip gdb-4da6be3f1ad66987b7e072e578183798b3c29cb0.tar.gz gdb-4da6be3f1ad66987b7e072e578183798b3c29cb0.tar.bz2 |
sim: warnings: rework individual flag disable into dedicated vars
The -Wshadow=local is too new for some compilers, so move it to a var
that we test at configure time.
Diffstat (limited to 'sim/cris')
-rw-r--r-- | sim/cris/local.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/cris/local.mk b/sim/cris/local.mk index a8eea65..fe3f3c8 100644 --- a/sim/cris/local.mk +++ b/sim/cris/local.mk @@ -17,10 +17,10 @@ ## along with this program. If not, see <http://www.gnu.org/licenses/>. ## Some CGEN kludges are causing build-time warnings. See cris.cpu for details. -AM_CFLAGS_%C%_mloopv10f.o = -Wno-unused-but-set-variable -AM_CFLAGS_%C%_mloopv32f.o = -Wno-unused-but-set-variable +AM_CFLAGS_%C%_mloopv10f.o = $(SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE) +AM_CFLAGS_%C%_mloopv32f.o = $(SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE) ## Some CGEN assignments use variable names that are nested & repeated. -AM_CFLAGS_%C%_mloopv10f.o += -Wno-shadow=local +AM_CFLAGS_%C%_mloopv10f.o += $(SIM_CFLAG_WNO_SHADOW_LOCAL) nodist_%C%_libsim_a_SOURCES = \ %D%/modules.c |