diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-23 12:42:20 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-23 12:46:34 +0700 |
commit | bc2c6ba21551f54c42047b01beeccf9daae7a03a (patch) | |
tree | d6b11811686b9b5c15925e83369352ec7152e53f /system/include/libc/assert.h | |
parent | f99012f271c056ddc171f6a4ec011ad31ad936cd (diff) |
Re-instate _ATTRIBUTE() usages.
These were broken because the definition of _ATTRIBUTE() from
libcxx was different, so change the libc definition and usage
to match.
Fixes issue #992.
Diffstat (limited to 'system/include/libc/assert.h')
-rw-r--r-- | system/include/libc/assert.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/include/libc/assert.h b/system/include/libc/assert.h index 6035227f..8d112839 100644 --- a/system/include/libc/assert.h +++ b/system/include/libc/assert.h @@ -36,10 +36,10 @@ extern "C" { # endif /* !__ASSERT_FUNC */ #endif /* !NDEBUG */ -void _EXFUN(__assert, (const char *, int, const char *)); -/* _ATTRIBUTE ((__noreturn__))); */ -void _EXFUN(__assert_func, (const char *, int, const char *, const char *)); -/* _ATTRIBUTE ((__noreturn__))); */ +void _EXFUN(__assert, (const char *, int, const char *) + _ATTRIBUTE(noreturn)); +void _EXFUN(__assert_func, (const char *, int, const char *, const char *) + _ATTRIBUTE(noreturn)); #ifdef __cplusplus } |