kbuild: Silence noisy GCC warnings up to GCC 10
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Change-Id: I400efda38e7909c6b86847f4abe0b381c1f1cb72 Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
This commit is contained in:
parent
d0b023cafc
commit
467e04cbac
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -692,6 +692,13 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
|
|||
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, psabi)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
|
||||
KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
|
||||
|
||||
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
||||
KBUILD_CFLAGS += -Os
|
||||
|
|
Loading…
Reference in a new issue