diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-26 13:15:14 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-26 14:35:10 +0200 |
commit | ac4a31e057c513a849025a8bcb7c10fa643a2aba (patch) | |
tree | e6811541e75e52dbca2eefa459dc9296f71787b5 /Libraries | |
parent | 83c809df5fef0a02b973247b35f1167f723cd348 (diff) | |
download | serenity-ac4a31e057c513a849025a8bcb7c10fa643a2aba.zip |
LibC: Mark _exit() as noreturn
We already do this for exit().
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/stdlib.cpp | 1 | ||||
-rw-r--r-- | Libraries/LibC/unistd.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Libraries/LibC/stdlib.cpp b/Libraries/LibC/stdlib.cpp index 139f484475..2a97e507da 100644 --- a/Libraries/LibC/stdlib.cpp +++ b/Libraries/LibC/stdlib.cpp @@ -208,7 +208,6 @@ void exit(int status) fflush(stdout); fflush(stderr); _exit(status); - ASSERT_NOT_REACHED(); } static void __atexit_to_cxa_atexit(void* handler) diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index 433ee2f666..82174d6a8e 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -72,7 +72,7 @@ int execlp(const char* filename, const char* arg, ...); int chroot(const char* path); int chroot_with_mount_flags(const char* path, int mount_flags); void sync(); -void _exit(int status); +__attribute__((noreturn)) void _exit(int status); pid_t getsid(pid_t); pid_t setsid(); int setpgid(pid_t pid, pid_t pgid); |