From db61366a554eede24827ccd6125badcd0b1edafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 21 May 2011 13:15:46 +0000 Subject: [PATCH] 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 --- headers/posix/assert.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/headers/posix/assert.h b/headers/posix/assert.h index 5c8d3db56a..1d47bd0ad6 100644 --- a/headers/posix/assert.h +++ b/headers/posix/assert.h @@ -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 }