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:
Jérôme Duval 2011-05-21 13:15:46 +00:00
parent 0f39da9140
commit db61366a55

View File

@ -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
}