disable maybe-uninitialized warnings
authorStricted <info@stricted.net>
Sat, 31 Mar 2018 22:55:46 +0000 (00:55 +0200)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:49 +0000 (18:03 +0200)
Makefile

index 48753a7d3bdb54fce3d4c6d46fe1ff22a055eca2..f811b6174afc89247381b3bc5894d064fdb9d301 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -577,8 +577,10 @@ endif # $(dot-config)
 # Defaults to vmlinux, but the arch makefile usually adds further targets
 all: vmlinux
 
+KBUILD_CFLAGS  += $(call cc-disable-warning,maybe-uninitialized,)
+
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
-KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
+KBUILD_CFLAGS  += -Os
 else
 KBUILD_CFLAGS  += -O2
 endif