Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81639?usp=email )
Change subject: [test tree] add Wduplicated-{branches,cond} ......................................................................
[test tree] add Wduplicated-{branches,cond}
Change-Id: Ice560c8e87e50940aff207a67bda6a597bd74c68 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M Makefile.mk 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/81639/1
diff --git a/Makefile.mk b/Makefile.mk index d7110a9..81707c8 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -495,18 +495,18 @@ 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 -Wflex-array-member-not-at-end CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie CFLAGS_common += -Wstring-compare ifeq ($(CONFIG_COMPILER_GCC),y) -CFLAGS_common += -Wold-style-declaration +CFLAGS_common += -Wold-style-declaration -Wduplicated-branches Wduplicated-cond # Don't add these GCC specific flags when running scan-build ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),) CFLAGS_common += -Wno-packed-not-aligned CFLAGS_common += -fconserve-stack CFLAGS_common += -Wnull-dereference -CFLAGS_common += -Wlogical-op -Wduplicated-cond -Wno-array-compare +CFLAGS_common += -Wlogical-op -Wno-array-compare endif endif