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:
@@ -16,10 +16,12 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void __assert_fail(const char *assertion, const char *file,
|
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,
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user