From: Olivier Houchard Date: Tue, 27 Nov 2018 13:47:58 +0000 (+0100) Subject: BUILD: Makefile: Disable -Wcast-function-type if it exists. X-Git-Tag: v1.9-dev9~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73bce43812da8c9415d40e370a63396deeb58b29;p=thirdparty%2Fhaproxy.git BUILD: Makefile: Disable -Wcast-function-type if it exists. Disable -Wcast-function-type for recent gcc, if we're casting a function type to another one, it is assumed we know what we're doing. --- diff --git a/Makefile b/Makefile index 6d7a01598d..f28ed5809a 100644 --- a/Makefile +++ b/Makefile @@ -186,6 +186,7 @@ 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-nowarn,cast-function-type) SPEC_CFLAGS += $(call cc-opt,-Wtype-limits) SPEC_CFLAGS += $(call cc-opt,-Wshift-negative-value) SPEC_CFLAGS += $(call cc-opt,-Wshift-overflow=2)