aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-01-21 18:01:55 +0100
committerBrian Behlendorf <[email protected]>2022-01-26 11:38:52 -0800
commitc70bb2f610523f9791796cedf6b0d5af1925131e (patch)
tree1c0cbe7d7360775f3cfe8511213be0e85387f2e1 /lib/libspl
parent7ada752a934f79d87fb9ef998455f26fd07f59a7 (diff)
Replace *CTASSERT() with _Static_assert()
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12993
Diffstat (limited to 'lib/libspl')
-rw-r--r--lib/libspl/include/assert.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libspl/include/assert.h b/lib/libspl/include/assert.h
index e129ef7df..fb964042b 100644
--- a/lib/libspl/include/assert.h
+++ b/lib/libspl/include/assert.h
@@ -111,14 +111,6 @@ do { \
#undef assert
#endif
-/* Compile time assert */
-#define CTASSERT_GLOBAL(x) _CTASSERT(x, __LINE__)
-#define CTASSERT(x) { _CTASSERT(x, __LINE__); }
-#define _CTASSERT(x, y) __CTASSERT(x, y)
-#define __CTASSERT(x, y) \
- typedef char __attribute__((unused)) \
- __compile_time_assertion__ ## y[(x) ? 1 : -1]
-
#ifdef NDEBUG
#define ASSERT3B(x, y, z) \
((void) sizeof ((uintptr_t)(x)), (void) sizeof ((uintptr_t)(z)))