]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: don't add -Wno-maybe-uninitialized twice
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 16 Apr 2024 07:35:24 +0000 (09:35 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 29 Apr 2024 16:53:38 +0000 (10:53 -0600)
Avoid adding the same flag to KBUILD_CFLAGS twice.

Fixes: 8602d97ca2cf ("Makefile: avoid false positive -Wmaybe-uninitialized")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Makefile

index 2fcb704077e1764d8527f4d5035b4fdb69e62396..769d9b879c1f643c3bebbf13678a7b25dec57448 100644 (file)
--- 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