summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-06-28 14:49:53 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-07-01 11:43:30 +0000
commit4332d028fba854a7bf310908f3400a102bdbe741 (patch)
tree42378d5fd340d4e96e6131f5ca449b039e8161f6
parent6ab188ee6c99b1d9924b607d7e939d91e35014ec (diff)
Makefile.mk: Use Wcast-function-type GCC option
Change-Id: I25415d7fd82879889ffaa1bb534ad5d0b174854e Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82736 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-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