summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-07-13 19:02:20 +0100
committerLinus Groh <mail@linusgroh.de>2021-07-13 19:02:20 +0100
commit552185066ed836eef38f1f9088c9482854dcf70a (patch)
treec5b6a17af14e06035c2ef773ad6b50ca37957027 /Userland/Libraries
parentd34ef6d997a91e7e0e39cf8d9a11e8aa693a518a (diff)
downloadserenity-552185066ed836eef38f1f9088c9482854dcf70a.zip
LibC: Use C-style void cast in assert()
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/assert.h b/Userland/Libraries/LibC/assert.h
index a05f939735..3d8d324484 100644
--- a/Userland/Libraries/LibC/assert.h
+++ b/Userland/Libraries/LibC/assert.h
@@ -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))