From 79818bbf8ee86a7196a704370ce757f99bf9f196 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 23 Dec 2020 21:23:41 +0100 Subject: [PATCH] LibC: Unbreak assert.h when compiled with a C compiler :^) --- Libraries/LibC/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibC/assert.h b/Libraries/LibC/assert.h index d1e1041e549..055553514be 100644 --- a/Libraries/LibC/assert.h +++ b/Libraries/LibC/assert.h @@ -41,7 +41,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg); } while (0) # define ASSERT_NOT_REACHED() assert(false) #else -# define assert(expr) (void(0)) +# define assert(expr) ((void)(0)) # define ASSERT_NOT_REACHED() CRASH() #endif