1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

Tests: Fix -Wunreachable-code warnings from clang

This commit is contained in:
Nico Weber 2021-10-07 13:52:26 -04:00 committed by Andreas Kling
parent 1cdb12e920
commit 96666f3209
5 changed files with 0 additions and 7 deletions

View file

@ -55,7 +55,6 @@ static void* yanker_fn(void* shared_)
if (child_pid < 0) {
printf("Yanker: Fork failed: %d\n", child_pid);
pthread_exit(nullptr); // See below
return nullptr;
}
if (child_pid > 0) {
@ -63,7 +62,6 @@ static void* yanker_fn(void* shared_)
// FIXME: LibPthread bug: returning during normal operation causes nullptr deref.
// Workaround: Exit manually.
pthread_exit(nullptr);
return nullptr;
}
// Give parent *thread* a moment to die.