MINOR: build: Disable -Wstringop-overflow.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 16 Oct 2018 16:35:40 +0000 (18:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 17:28:23 +0000 (19:28 +0200)
Disable -Wstringop-overflow, as it gives annoying false positives
with gcc 8.

Makefile

index 424d98c..821d314 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,6 +167,7 @@ SPEC_CFLAGS += $(call cc-nowarn,ignored-qualifiers)
 SPEC_CFLAGS += $(call cc-nowarn,clobbered)
 SPEC_CFLAGS += $(call cc-nowarn,missing-field-initializers)
 SPEC_CFLAGS += $(call cc-nowarn,implicit-fallthrough)
+SPEC_CFLAGS += $(call cc-nowarn,stringop-overflow)
 SPEC_CFLAGS += $(call cc-opt,-Wtype-limits)
 SPEC_CFLAGS += $(call cc-opt,-Wshift-negative-value)
 SPEC_CFLAGS += $(call cc-opt,-Wshift-overflow=2)