aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-15 10:48:02 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-15 11:00:00 -0400
commitbe2bc30f9cb3e8dd8b566db551a8ce3cc305e015 (patch)
treeb956da9b71b744d3600ee4a1a7817c4f92f3c2ba /sim/ppc/Makefile.in
parentc5a2e0123b7241be6a2022f1acb8fa700dda628a (diff)
downloadgdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.zip
gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.gz
gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.bz2
sim: ppc: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port. Cast address vars to long when the format was using %l. Use %zu with sizeof operations. Add const to a bunch of strings. Trim unused variables. Fix sizeof call to calculate target storage and not the pointer itself.
Diffstat (limited to 'sim/ppc/Makefile.in')
-rw-r--r--sim/ppc/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index 63b957d..9fc864e 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -64,6 +64,7 @@ AR = @AR@
AR_FLAGS = rc
CC = @CC@
CFLAGS = @CFLAGS@
+WERROR_CFLAGS = @WERROR_CFLAGS@
CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
BISON = bison
@@ -103,7 +104,7 @@ CONFIG_CFLAGS = \
$(DEVZERO_CFLAGS)
SIM_FPU_CFLAGS = @sim_fpu_cflags@
-STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
+STD_CFLAGS = $(CFLAGS) $(WERROR_CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(INCLUDES) $(SIM_FPU_CFLAGS)
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS)