aboutsummaryrefslogtreecommitdiff
path: root/Makefile.mk
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-03-12 18:15:39 +0100
committerMartin L Roth <gaumless@gmail.com>2024-03-21 16:16:33 +0000
commit1ba3d1630a9737cc74a93540af30adb8a1d80160 (patch)
tree598a899489b23196fefe68e3049a002bcaa5a409 /Makefile.mk
parentb2d86f1f050df4cc16eeeb3b53bf223f052c9628 (diff)
Makefile.mk: Enable string-compare command option
Change-Id: I7b05b6dd8f1de8689bfcc6825beb728111f6e54a Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81184 Reviewed-by: Martin L Roth <gaumless@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Makefile.mk')
-rw-r--r--Makefile.mk1
1 files changed, 1 insertions, 0 deletions
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