diff options
author | Tom Rini <trini@konsulko.com> | 2021-05-03 16:48:57 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-07 10:17:54 -0400 |
commit | c48b781581f6c3b24cb40241e90296b0e7f7a30f (patch) | |
tree | 75f2ede5c8ef45210793aed765e4ff8a6107a1b8 /Makefile | |
parent | 5503435838f946697e78b9564a45595380a66dff (diff) | |
download | u-boot-c48b781581f6c3b24cb40241e90296b0e7f7a30f.zip u-boot-c48b781581f6c3b24cb40241e90296b0e7f7a30f.tar.gz u-boot-c48b781581f6c3b24cb40241e90296b0e7f7a30f.tar.bz2 |
Makefile: Disable gcc-10.0 introduced warnings
Follow what the Linux Kernel does here and disable the
'zero-length-bounds', 'array-bounds' and 'stringop-overflow' warnings
here.
This brings in commits 5c45de21a2223, 44720996e2d79 and 5a76021c2eff7
from the Linux Kernel.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -712,6 +712,10 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks) # disable stringop warnings in gcc 8+ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) +KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds) +KBUILD_CFLAGS += $(call cc-disable-warning, array-bounds) +KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow) + # Enabled with W=2, disabled by default as noisy KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) |