diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-21 23:51:38 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-23 13:56:38 -0700 |
commit | 0615af6f4748e4f7dc6a4f034a9db636742cc3bd (patch) | |
tree | a0c09720ca4c8670869b56d03e57431b46073f75 /libmisc/assert.c | |
parent | 3064cb13577edd31d3a3ceb79b2bc72314ec208b (diff) |
Use C23 (C++11) attribute syntax instead of __attribute__
Diffstat (limited to 'libmisc/assert.c')
-rw-r--r-- | libmisc/assert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmisc/assert.c b/libmisc/assert.c index 456ac24..8231c85 100644 --- a/libmisc/assert.c +++ b/libmisc/assert.c @@ -13,7 +13,7 @@ #include <libmisc/assert.h> #ifndef NDEBUG -__attribute__((noreturn, weak)) +[[noreturn, gnu::weak]] void __assert_msg_fail(const char *expr, const char *file, unsigned int line, const char *func, const char *msg) { |