Elyes Haouas has uploaded this change for review.

View Change

Makefile.inc: Enable Wcast-function-type command option

Clang enables by default Wcast-function-type. Enable it for gcc.

Change-Id: I6aebe41e325dea74d52e396e27eec601bdcfd3a4
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
---
M Makefile.inc
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/79944/1
diff --git a/Makefile.inc b/Makefile.inc
index 23f56a4..37ae763 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -494,7 +494,7 @@
CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough
CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla -Wold-style-definition
-CFLAGS_common += -Wdangling-else -Wmissing-include-dirs
+CFLAGS_common += -Wdangling-else -Wmissing-include-dirs -Wcast-function-type
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie
ifeq ($(CONFIG_COMPILER_GCC),y)

To view, visit change 79944. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6aebe41e325dea74d52e396e27eec601bdcfd3a4
Gerrit-Change-Number: 79944
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas@noos.fr>
Gerrit-MessageType: newchange