Re: [PATCH 2/2] zfs: Fix gcc10 error -Werror=zero-length-bounds

2020-03-26 Thread Daniel Kiper
On Thu, Mar 26, 2020 at 02:35:35PM +0800, Michael Chang wrote: > We bumped into the build error while testing gcc-10 pre-release. > > In file included from ../../include/grub/file.h:22, > from ../../grub-core/fs/zfs/zfs.c:34: > ../../grub-core/fs/zfs/zfs.c: In function 'zap_leaf_looku

[PATCH 2/2] zfs: Fix gcc10 error -Werror=zero-length-bounds

2020-03-25 Thread Michael Chang
We bumped into the build error while testing gcc-10 pre-release. In file included from ../../include/grub/file.h:22, from ../../grub-core/fs/zfs/zfs.c:34: ../../grub-core/fs/zfs/zfs.c: In function 'zap_leaf_lookup': ../../grub-core/fs/zfs/zfs.c:2263:44: error: array subscript '' is