summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-05-17 18:41:01 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-05-18 00:47:04 +0200
commitd73bfd1a42aae2b31168acd7827eeb24494cf289 (patch)
treedd452ad9a8d3139c604f3cbda93df44406c44a19 /apps/plugins
parentc75dbaae255eeb73686aa6452ac51d3f12bcc17f (diff)
downloadrockbox-d73bfd1a42aae2b31168acd7827eeb24494cf289.tar.gz
rockbox-d73bfd1a42aae2b31168acd7827eeb24494cf289.zip
pdbox/doom: Use -Wno-stringop-truncation with GCC >=8
This should shut up a lot of the sim build failures Change-Id: Ieaa387585cb8ca0f8b2faff24c08aad9451b28ce
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/doom.make4
-rw-r--r--apps/plugins/pdbox/pdbox.make10
2 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make
index 0ebdf384a1..8be7620feb 100644
--- a/apps/plugins/doom/doom.make
+++ b/apps/plugins/doom/doom.make
@@ -24,6 +24,10 @@ DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing
24ifeq ($(shell expr $(GCCNUM) \> 401),1) 24ifeq ($(shell expr $(GCCNUM) \> 401),1)
25 DOOMCFLAGS += -fgnu89-inline 25 DOOMCFLAGS += -fgnu89-inline
26endif 26endif
27# Disable stringop-truncation warnings on GCC 8 or greater
28ifeq ($(shell expr $(GCCNUM) \> 800),1)
29 DOOMCFLAGS += -Wno-stringop-truncation
30endif
27 31
28ifndef APP_TYPE 32ifndef APP_TYPE
29ifeq ($(TARGET), IRIVER_H100) 33ifeq ($(TARGET), IRIVER_H100)
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make
index 7ec998dc5e..a9ce0d2755 100644
--- a/apps/plugins/pdbox/pdbox.make
+++ b/apps/plugins/pdbox/pdbox.make
@@ -20,12 +20,18 @@ OTHER_SRC += $(PDBOX_SRC)
20 20
21$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) 21$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ)
22 22
23PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type 23PDBOXFLAGS = $(PLUGINFLAGS) -fno-strict-aliasing -Wno-cast-function-type
24PDBOXLDFLAGS = $(PLUGINLDFLAGS) 24PDBOXLDFLAGS = $(PLUGINLDFLAGS)
25ifdef APP_TYPE 25ifdef APP_TYPE
26PDBOXLDFLAGS += -lm 26PDBOXLDFLAGS += -lm
27endif 27endif
28 28
29# Disable stringop-truncation warnings on GCC 8 or greater
30ifeq ($(shell expr $(GCCNUM) \> 800),1)
31 PDBOXFLAGS += -Wno-stringop-truncation
32endif
33
34
29$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB) 35$(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(TLSFLIB)
30 36
31# Compile PDBox with extra flags (adapted from ZXBox) 37# Compile PDBox with extra flags (adapted from ZXBox)