summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-05-08 16:50:46 +0200
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2023-05-14 07:22:50 +0000
commit23d4614d8a7c259dd8fae56d7a3627079dc82381 (patch)
tree64f892b207d076861b3a20bfd105479de615cf15
parent909829e3044f3d7c6365fdc1562f9c7468638504 (diff)
Makefile.inc: Warn about set but unused variables with GCC
Clang was already warning about this. Synchronize the behaviour between both compilers. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I3331a7437b17ab5ac97cef94511bb29c020bdff0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75032 Reviewed-by: Jan Samek <jan.samek@siemens.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
-rw-r--r--Makefile.inc2
1 files changed, 0 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 6901ef490a..8deb099cec 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -437,8 +437,6 @@ CFLAGS_common += -Wno-packed-not-aligned
CFLAGS_common += -fconserve-stack
CFLAGS_common += -Wnull-dereference -Wreturn-type
CFLAGS_common += -Wlogical-op -Wduplicated-cond -Wno-array-compare
-# cf. commit f69a99db (coreboot: x86: enable gc-sections)
-CFLAGS_common += -Wno-unused-but-set-variable
endif
endif