aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/module/zfs
diff options
context:
space:
mode:
authorColeman Kane <ckane@colemankane.org>2022-05-17 20:07:39 +0000
committerGitHub <noreply@github.com>2022-05-17 20:07:39 +0000
commitc0cf6ed6792e545fd614c2a88cb53756db7e03f8 (patch)
tree429fbc81733e4f3e26f6ce655e4752ba944c377e /sys/contrib/openzfs/module/zfs
parent276b08cb0077d7f6c4fe6b735e72740e8e72d572 (diff)
downloadsrc-c0cf6ed6792e545fd614c2a88cb53756db7e03f8.tar.gz
src-c0cf6ed6792e545fd614c2a88cb53756db7e03f8.zip
Fix compiler warnings about zero-length arrays in inline bitops
The compiler appears to be expanding the unused NULL pointer into a zero-length array via the inline bitops code. When -Werror=array-bounds is used, this causes a build failure. Recommended solution is allocate temporary structures, fill with zeros (to avoid uninitialized data use warnings), and pass the pointer to those to the inline calls. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Coleman Kane <ckane@colemankane.org> Closes #13463 Closes #13465
Diffstat (limited to 'sys/contrib/openzfs/module/zfs')
0 files changed, 0 insertions, 0 deletions