Patch from Dhruwat Bhagat (bug #7537): Fix "'noreturn' function returns" warning on call to assert(0).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41628 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0f39da9140
commit
db61366a55
@ -16,10 +16,12 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
extern void __assert_fail(const char *assertion, const char *file,
|
||||
unsigned int line, const char *function);
|
||||
unsigned int line, const char *function)
|
||||
__attribute__ ((noreturn));
|
||||
|
||||
extern void __assert_perror_fail(int error, const char *file,
|
||||
unsigned int line, const char *function);
|
||||
unsigned int line, const char *function)
|
||||
__attribute__ ((noreturn));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user