HomeFreeBSD

Silence unused-but-set-variable warning

Description

Silence unused-but-set-variable warning

This was breaking the kmod port build on FreeBSD with Clang 13.

Use the same trick as we do for ASSERT() to make DNODE_VERIFY() use
its parameter at compile time without actually using it at run time
in non-debug builds.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #13507

Details

Provenance
freqlabsAuthored on May 26 2022, 12:26 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 27 2022, 4:19 PM
Parents
rG2458c7e63a07: zed: support subject as header in zed_notify_email()
Branches
Unknown
Tags
Unknown

Event Timeline