From 2c62d51e251f541e3dfac1a762badc2e353d81cd Mon Sep 17 00:00:00 2001 From: Michel Hermier Date: Thu, 16 Dec 2021 17:56:25 +0100 Subject: [PATCH] LibC: Remove `VERIFY_NOT_REACHED()` from `assert.h` Both `AK/Assertions.h` and `assert.h` would define the macro if `NDEBUG` is set. Remove the definition from `assert.h` since it is not an ISO-C requirement. --- Userland/Libraries/LibC/assert.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibC/assert.h b/Userland/Libraries/LibC/assert.h index 3d8d324484..5e1072aaf8 100644 --- a/Userland/Libraries/LibC/assert.h +++ b/Userland/Libraries/LibC/assert.h @@ -21,7 +21,6 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg); #else # define assert(expr) ((void)(0)) -# define VERIFY_NOT_REACHED() _abort() #endif __attribute__((noreturn)) void _abort();