Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83020?usp=email )
Change subject: [only for test] test gcc's cmd options ......................................................................
[only for test] test gcc's cmd options
Change-Id: I4a68633d3fc2e154b882ded122cf6f5b9e2935ca Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M Makefile.mk 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/20/83020/1
diff --git a/Makefile.mk b/Makefile.mk index e642ac7..194efa3 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -500,6 +500,8 @@ CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie CFLAGS_common += -Wstring-compare +CFLAGS_common += -Wpedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wformat=2 +CFLAGS_common += -Wformat-security ifeq ($(CONFIG_COMPILER_GCC),y) CFLAGS_common += -Wold-style-declaration # Don't add these GCC specific flags when running scan-build