Disable maybe-uninitialized warnings
This commit is contained in:
parent
6a9bd2721f
commit
22449473d7
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue