]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - Makefile
Kbuild: disable 'maybe-uninitialized' warning for CONFIG_PROFILE_ALL_BRANCHES
[mirror_ubuntu-artful-kernel.git] / Makefile
index 26500ffc5eabeb08a219a3ed52495a0ae8776efd..ffeb6d9e17bba6f9c3bc799079919b403d5fac0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -621,7 +621,11 @@ KBUILD_CFLAGS      += $(call cc-option,-fno-delete-null-pointer-checks,)
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
 KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
-KBUILD_CFLAGS  += -O2
+ifdef CONFIG_PROFILE_ALL_BRANCHES
+KBUILD_CFLAGS  += -O2 $(call cc-disable-warning,maybe-uninitialized,)
+else
+KBUILD_CFLAGS   += -O2
+endif
 endif
 
 # Tell gcc to never replace conditional load with a non-conditional one