From 1ba3d1630a9737cc74a93540af30adb8a1d80160 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 12 Mar 2024 18:15:39 +0100 Subject: Makefile.mk: Enable string-compare command option Change-Id: I7b05b6dd8f1de8689bfcc6825beb728111f6e54a Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/81184 Reviewed-by: Martin L Roth Tested-by: build bot (Jenkins) --- Makefile.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.mk b/Makefile.mk index c901785081..bfdb7e3348 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -498,6 +498,7 @@ CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla -Wold-style-definition CFLAGS_common += -Wdangling-else -Wmissing-include-dirs 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 # Don't add these GCC specific flags when running scan-build -- cgit v1.2.3