summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-05-17 19:13:53 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-05-18 01:15:42 +0200
commit0cee5ba91bec5adac0875de8a69c948a58d2c4d6 (patch)
treef3ee8846156fd4141198e203580fed2e49900763 /apps
parentd73bfd1a42aae2b31168acd7827eeb24494cf289 (diff)
downloadrockbox-0cee5ba91bec5adac0875de8a69c948a58d2c4d6.tar.gz
rockbox-0cee5ba91bec5adac0875de8a69c948a58d2c4d6.tar.bz2
rockbox-0cee5ba91bec5adac0875de8a69c948a58d2c4d6.zip
mikmod: Use -Wno-stringop-truncation with GCC >=8
This will silence a false warning/error when -D_FORTIFY_SOURCE is used Change-Id: Ic75dbaaa1f419d63163c797d127e6d1928781fd2
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/mikmod/mikmod.make5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/mikmod/mikmod.make b/apps/plugins/mikmod/mikmod.make
index 016b05433e..f93a10ca27 100644
--- a/apps/plugins/mikmod/mikmod.make
+++ b/apps/plugins/mikmod/mikmod.make
@@ -20,6 +20,11 @@ OTHER_SRC += $(MIKMOD_SRC)
MIKMODCFLAGS = $(PLUGINFLAGS) -I$(MIKMODSRCDIR) -O2
+# Disable stringop-truncation warnings on GCC 8 or greater
+ifeq ($(shell expr $(GCCNUM) \> 800),1)
+ MIKMODCFLAGS += -Wno-stringop-truncation
+endif
+
$(MIKMODBUILDDIR)/mikmod.rock: $(MIKMOD_OBJ) $(TLSFLIB)
# new rule needed to use extra compile flags