HomeFreeBSD

libspl: ASSERT*: !! for sizeof

Description

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

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Jan 21 2022, 6:20 PM
GitHub <noreply@github.com>Committed on Jan 21 2022, 6:20 PM
Parents
rG5a4d282f55f3: Fix problem with zdb -d
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGbc40713a8f2e: libspl: ASSERT*: !! for sizeof (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jan 21 2022, 6:20 PM