diff options
author | Ryan Moeller <[email protected]> | 2022-05-25 20:26:59 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-25 17:26:59 -0700 |
commit | b62829295e9529d1c321816a1027fac5afc7d6f5 (patch) | |
tree | 93e23a1d4f238f90daf69d0190dffacdedd0e0be | |
parent | 6aa8c21a2ad29ddd4564cdfd4c99048c891b717a (diff) |
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 <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #13507
-rw-r--r-- | include/sys/dnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/dnode.h b/include/sys/dnode.h index 3f5fcc958..33d9389d5 100644 --- a/include/sys/dnode.h +++ b/include/sys/dnode.h @@ -616,7 +616,7 @@ extern dnode_stats_t dnode_stats; #else #define dprintf_dnode(db, fmt, ...) -#define DNODE_VERIFY(dn) +#define DNODE_VERIFY(dn) ((void) sizeof ((uintptr_t)(dn))) #define FREE_VERIFY(db, start, end, tx) #endif |