Disable maybe-uninitialized warnings

This commit is contained in:
James Christopher Adduono 2016-03-10 22:52:58 -05:00 committed by HackerOO7
parent 6a9bd2721f
commit 22449473d7

View file

@ -621,9 +621,10 @@ all: vmlinux
include $(srctree)/arch/$(SRCARCH)/Makefile
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
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