summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.mk b/Makefile.mk
index 7be4685eff..a16089d6d2 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -529,6 +529,7 @@ CFLAGS_common += -Wstring-compare
ifeq ($(CONFIG_COMPILER_GCC),y)
CFLAGS_common += -Wold-style-declaration
CFLAGS_common += -Walloc-size
+CFLAGS_common += -Wcast-function-type
# Don't add these GCC specific flags when running scan-build
ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),)
CFLAGS_common += -Wno-packed-not-aligned