[haiku-commits] r41628 - haiku/trunk/headers/posix

Author: korli
Date: 2011-05-21 15:15:46 +0200 (Sat, 21 May 2011)
New Revision: 41628
Changeset: https://dev.haiku-os.org/changeset/41628
Ticket: https://dev.haiku-os.org/ticket/7537

Modified:
   haiku/trunk/headers/posix/assert.h
Log:
Patch from Dhruwat Bhagat (bug #7537): Fix "'noreturn' function returns" 
warning on call to assert(0).


Modified: haiku/trunk/headers/posix/assert.h
===================================================================
--- haiku/trunk/headers/posix/assert.h  2011-05-21 10:48:56 UTC (rev 41627)
+++ haiku/trunk/headers/posix/assert.h  2011-05-21 13:15:46 UTC (rev 41628)
@@ -16,10 +16,12 @@
 #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
 }


Other related posts: