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.
This commit is contained in:
parent
3f024f3be5
commit
73bce43812
1
Makefile
1
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)
|
||||
|
Loading…
Reference in New Issue
Block a user