From 0cee5ba91bec5adac0875de8a69c948a58d2c4d6 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 17 May 2020 19:13:53 -0400 Subject: [PATCH] mikmod: Use -Wno-stringop-truncation with GCC >=8 This will silence a false warning/error when -D_FORTIFY_SOURCE is used Change-Id: Ic75dbaaa1f419d63163c797d127e6d1928781fd2 --- apps/plugins/mikmod/mikmod.make | 5 +++++ 1 file changed, 5 insertions(+) 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