[RFC 5/7] Makefile: Disable gcc-10.0 warnings

Tom Rini trini at konsulko.com
Mon May 3 22:48:57 CEST 2021


Based on 5c45de21a2223, 44720996e2d79 and 5a76021c2eff7 in Linux

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 404977efa527..aaa9a0495e69 100644
--- a/Makefile
+++ b/Makefile
@@ -687,6 +687,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)
 
-- 
2.17.1



More information about the U-Boot mailing list