Skip to content

Commit 00a4f83

Browse files
committed
Makefile: Enable -Wzero-length-bounds
With all known internal zero-length accesses fixed, it is possible to enable -Wzero-length-bounds globally. Since this is included by default in -Warray-bounds, we just need to stop disabling it. Cc: "Gustavo A. R. Silva" <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Link: https://lore.kernel.org/lkml/CAKwvOd=bcs5W6eEDXGn5ROR2EuMiSp_2e6sLFxak=KK6yLWcvA@mail.gmail.com
1 parent e614876 commit 00a4f83

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,6 @@ KBUILD_CFLAGS += $(call cc-option, -Wcast-function-type)
951951
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
952952

953953
# We'll want to enable this eventually, but it's not going away for 5.7 at least
954-
KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
955954
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
956955

957956
# Another good warning that we'll want to enable eventually

0 commit comments

Comments
 (0)