libc.h: mark _assert as noreturn

Indeed the `assert` macro calls the _assert function only when the assertion failed.
This commit is contained in:
Giacomo Tesio 2017-01-17 17:08:41 +00:00
parent 6daa49324a
commit 06376d5859

View File

@ -360,7 +360,7 @@ enum
PNGROUP = 2, PNGROUP = 2,
}; };
extern void _assert(const char*); extern void _assert(const char*) __attribute__ ((noreturn));
extern int abs(int); extern int abs(int);
extern int atexit(void(*)(void)); extern int atexit(void(*)(void));
extern void atexitdont(void(*)(void)); extern void atexitdont(void(*)(void));