From: Heinrich Schuchardt Date: Tue, 16 Apr 2024 07:35:24 +0000 (+0200) Subject: Makefile: don't add -Wno-maybe-uninitialized twice X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=5ab013424eebca4e718d2d3815ece3c849a2ab1f;p=u-boot.git Makefile: don't add -Wno-maybe-uninitialized twice Avoid adding the same flag to KBUILD_CFLAGS twice. Fixes: 8602d97ca2cf ("Makefile: avoid false positive -Wmaybe-uninitialized") Signed-off-by: Heinrich Schuchardt Reviewed-by: Quentin Schulz --- diff --git a/Makefile b/Makefile index 2fcb704077..769d9b879c 100644 --- a/Makefile +++ b/Makefile @@ -717,7 +717,7 @@ KBUILD_CFLAGS += -O2 endif ifdef CONFIG_CC_OPTIMIZE_FOR_DEBUG -KBUILD_CFLAGS += -Og -Wno-maybe-uninitialized +KBUILD_CFLAGS += -Og # Avoid false positives -Wmaybe-uninitialized # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78394 KBUILD_CFLAGS += -Wno-maybe-uninitialized