Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79944?usp=email )
Change subject: Makefile.inc: Enable Wcast-function-type command option ......................................................................
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)