LibC: Mark exit as noreturn
This commit is contained in:
@@ -56,7 +56,7 @@ int clearenv(void);
|
||||
div_t div(int numer, int denom);
|
||||
double drand48(void);
|
||||
double erand48(unsigned short xsubi[3]);
|
||||
void exit(int status);
|
||||
void exit(int status) __attribute__((__noreturn__));
|
||||
void free(void* ptr);
|
||||
char* getenv(const char* name);
|
||||
int getsubopt(char** optionp, char* const* keylistp, char** valuep);
|
||||
|
||||
@@ -37,7 +37,6 @@ void exit(int status)
|
||||
__cxa_finalize(nullptr);
|
||||
fflush(nullptr);
|
||||
_exit(status);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void _Exit(int status)
|
||||
|
||||
Reference in New Issue
Block a user