From 23d4614d8a7c259dd8fae56d7a3627079dc82381 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 8 May 2023 16:50:46 +0200 Subject: 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 Change-Id: I3331a7437b17ab5ac97cef94511bb29c020bdff0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75032 Reviewed-by: Jan Samek Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- Makefile.inc | 2 -- 1 file changed, 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 -- cgit v1.2.1