stdlib.h: Add noreturn attribute to exit and _Exit.

Fixes #15110.
This commit is contained in:
Augustin Cavalier 2019-06-15 12:14:06 -04:00
parent 7b1178998d
commit 03c14d2989

View File

@ -55,8 +55,8 @@ extern void *realloc(void *oldPointer, size_t newSize);
extern void abort(void);
extern int atexit(void (*func)(void));
extern int atfork(void (*func)(void));
extern void exit(int);
extern void _Exit(int);
extern void exit(int) __attribute__((noreturn));
extern void _Exit(int) __attribute__((noreturn));
/* misc functions */
extern char *realpath(const char *path, char *resolved);