From 73bce43812da8c9415d40e370a63396deeb58b29 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 27 Nov 2018 14:47:58 +0100 Subject: [PATCH] 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6d7a01598..f28ed5809 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)