From 4332d028fba854a7bf310908f3400a102bdbe741 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Fri, 28 Jun 2024 14:49:53 +0200 Subject: [PATCH] Makefile.mk: Use Wcast-function-type GCC option Change-Id: I25415d7fd82879889ffaa1bb534ad5d0b174854e Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/82736 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- Makefile.mk | 1 + 1 file changed, 1 insertion(+) 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