fs/bcachefs/btree_update_interior.h:274:36: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_packed[0]’ [-Werror=zero-length-bounds]
fs/bcachefs/btree_trans_commit.c:702:14: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_i[0]’ [-Werror=zero-length-bounds] fs/bcachefs/btree_trans_commit.c:694:14: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_i[0]’ [-Werror=zero-length-bounds] fs/bcachefs/btree_trans_commit.c:686:5: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_i[0]’ [-Werror=zero-length-bounds] Reported-by: k2ci <[email protected]> Signed-off-by: Ke Sun <[email protected]> --- fs/bcachefs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/bcachefs/Makefile b/fs/bcachefs/Makefile index 0749731b9072..f3fbd1f88074 100644 --- a/fs/bcachefs/Makefile +++ b/fs/bcachefs/Makefile @@ -85,4 +85,6 @@ bcachefs-y := \ varint.o \ xattr.o +subdir-ccflags-y += -Wno-zero-length-bounds + obj-$(CONFIG_MEAN_AND_VARIANCE_UNIT_TEST) += mean_and_variance_test.o -- 2.34.1
