]> git.proxmox.com Git - mirror_zfs.git/commit
libspl: ASSERT*: !! for sizeof
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 21 Jan 2022 18:20:11 +0000 (19:20 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 18:20:11 +0000 (10:20 -0800)
commitbc40713a8f2e78ce8b4bdef587d5233d313f06f1
tree7433bf5e8d63263d7e55964f51e2140643414c10
parent5a4d282f55f3237a4baafa04a897e738aa98f6d2
libspl: ASSERT*: !! for sizeof

sizeof(bitfield.member) is invalid, and this shows up in some FreeBSD
build configurations: work around this by !!ing ‒
this makes the sizeof target the ! result type (_Bool), instead

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Fixes: 42aaf0e ("libspl: ASSERT*: mark arguments as used")
Closes #12984
Closes #12986
include/os/freebsd/spl/sys/debug.h
include/os/linux/spl/sys/debug.h
lib/libspl/include/assert.h