]> git.proxmox.com Git - mirror_zfs.git/commit
Silence unused-but-set-variable warning
authorRyan Moeller <ryan@iXsystems.com>
Thu, 26 May 2022 00:26:59 +0000 (20:26 -0400)
committerGitHub <noreply@github.com>
Thu, 26 May 2022 00:26:59 +0000 (17:26 -0700)
commitb62829295e9529d1c321816a1027fac5afc7d6f5
tree93e23a1d4f238f90daf69d0190dffacdedd0e0be
parent6aa8c21a2ad29ddd4564cdfd4c99048c891b717a
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
include/sys/dnode.h