From c70bb2f610523f9791796cedf6b0d5af1925131e Mon Sep 17 00:00:00 2001 From: наб Date: Fri, 21 Jan 2022 18:01:55 +0100 Subject: Replace *CTASSERT() with _Static_assert() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia Ziemiańska Closes #12993 --- lib/libspl/include/assert.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/libspl') 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))) -- cgit v1.2.3