summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-07-07 20:32:22 +0300
committerTom Rini <trini@konsulko.com>2021-07-07 20:32:22 +0300
commit5b8a83551d339736af92c43524ed0e1ba01122af (patch)
treec05ddf8c68a2c7f00c8843a231026d95b3d82f43 /Makefile
parent54fb6e396dd6a0cfbbed77d6baffa23899f4fca9 (diff)
parent7bb1cc3bb9d6fca5f285db4df2299c3b80aa8c4a (diff)
downloadu-boot-5b8a83551d339736af92c43524ed0e1ba01122af.tar.xz
Merge branch '2021-07-06-update-to-gcc11-clang11'
- Update CI to use gcc-11.1 and clang-11 to build everything. This requires a few fixes to the code that these newer compilers have exposed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2ab9c53192..d9473fb572 100644
--- a/Makefile
+++ b/Makefile
@@ -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)