LibC: Mark exit as noreturn

This commit is contained in:
2026-05-02 18:12:20 +03:00
parent 33ea0f07b7
commit 23a0226f1b
2 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -37,7 +37,6 @@ void exit(int status)
__cxa_finalize(nullptr);
fflush(nullptr);
_exit(status);
ASSERT_NOT_REACHED();
}
void _Exit(int status)