<stdlib.h>: Use _Noreturn for C11's quick_exit().
authorSascha Wildner <saw@online.de>
Wed, 22 May 2013 04:53:17 +0000 (06:53 +0200)
committerSascha Wildner <saw@online.de>
Wed, 22 May 2013 04:53:17 +0000 (06:53 +0200)
Taken-from: FreeBSD

include/stdlib.h

index 9e2f41f..e3245ce 100644 (file)
@@ -301,7 +301,8 @@ extern char *suboptarg;                     /* getsubopt(3) external variable */
  */
 #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L || __BSD_VISIBLE
 int    at_quick_exit(void (*func)(void));
-void   quick_exit(int) __dead2;
+_Noreturn void
+       quick_exit(int);
 void   *aligned_alloc(size_t, size_t);
 #endif /* __ISO_C_VISIBLE >= 2011 */