1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibC: Use C-style void cast in assert()

This commit is contained in:
Linus Groh 2021-07-13 19:02:20 +01:00
parent d34ef6d997
commit 552185066e

View file

@ -17,7 +17,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
# define assert(expr) \
(__builtin_expect(!(expr), 0) \
? __assertion_failed(#expr "\n" __FILE__ ":" __stringify(__LINE__)) \
: void(0))
: (void)0)
#else
# define assert(expr) ((void)(0))