From 04e0712f46d15e22d640badc7cb96582c3a3fc27 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Mon, 9 Mar 2020 18:16:48 +0100 Subject: Treewide: Add some gcc's warning options Change-Id: I789c8906542c59477b0037d39e7aa4fb2dcf22c0 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/39406 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- Makefile.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index f172005c7f..43b29c73cc 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -421,6 +421,7 @@ CFLAGS_common += -pipe -g -nostdinc -std=gnu11 CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time -Wtype-limits -Wvla +CFLAGS_common += -Wlogical-op -Wduplicated-cond -Wdangling-else CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie ifeq ($(CONFIG_COMPILER_GCC),y) -- cgit v1.2.3