From e90dd1634745ee470cbda5af931af2195d4d177e Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 21 Nov 2019 16:02:06 +0100 Subject: [PATCH] tests/ssp: warning stringop-overflow has to be disabled Newer gcc versions have an option to enable overflow warnings for string operations. This option is enabled by default. For this test, it is necessary to disable this warning if the compiler supports this option. --- tests/ssp/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ssp/Makefile b/tests/ssp/Makefile index 0bb233de3a..d3decba142 100644 --- a/tests/ssp/Makefile +++ b/tests/ssp/Makefile @@ -6,3 +6,7 @@ FEATURES_BLACKLIST += arch_avr8 arch_esp8266 arch_mips32r2 arch_msp430 USEMODULE += ssp include $(RIOTBASE)/Makefile.include + +ifneq (,$(shell $(CC) --help=warnings | grep '\-Wstringop-overflow=')) + CFLAGS += -Wstringop-overflow=0 +endif