diff options
author | наб <[email protected]> | 2021-12-12 15:14:00 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-23 09:35:47 -0800 |
commit | 42aaf0e7c4b9cf0fe9c18d218f291f12dd5b26a2 (patch) | |
tree | 43d707f909d6d4c15a219dc833c3345af1b67e8d /include/os/freebsd | |
parent | d6885f3209acfba4fa15c1a954cded6ce6e7808f (diff) |
libspl: ASSERT*: mark arguments as used
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12844
Diffstat (limited to 'include/os/freebsd')
-rw-r--r-- | include/os/freebsd/spl/sys/debug.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/os/freebsd/spl/sys/debug.h b/include/os/freebsd/spl/sys/debug.h index 1f820bc33..6a0c2fe07 100644 --- a/include/os/freebsd/spl/sys/debug.h +++ b/include/os/freebsd/spl/sys/debug.h @@ -133,14 +133,14 @@ void spl_dumpstack(void); */ #ifdef NDEBUG -#define ASSERT(x) ((void)0) -#define ASSERT3B(x,y,z) ((void)0) -#define ASSERT3S(x,y,z) ((void)0) -#define ASSERT3U(x,y,z) ((void)0) -#define ASSERT3P(x,y,z) ((void)0) -#define ASSERT0(x) ((void)0) -#define IMPLY(A, B) ((void)0) -#define EQUIV(A, B) ((void)0) +#define ASSERT(x) ((void)sizeof(x)) +#define ASSERT3B(x,y,z) ((void)sizeof(x), (void)sizeof(z)) +#define ASSERT3S(x,y,z) ((void)sizeof(x), (void)sizeof(z)) +#define ASSERT3U(x,y,z) ((void)sizeof(x), (void)sizeof(z)) +#define ASSERT3P(x,y,z) ((void)sizeof(x), (void)sizeof(z)) +#define ASSERT0(x) ((void)sizeof(x)) +#define IMPLY(A, B) ((void)sizeof(A), (void)sizeof(B)) +#define EQUIV(A, B) ((void)sizeof(A), (void)sizeof(B)) /* * Debugging enabled (--enable-debug) |