commit b935fa50ba57596ff498ea2cb9f5436ae3cb1b5e
parent d8b17f9781004ac2ed29c4911a17241262d174f0
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Sun, 6 Oct 2024 19:23:38 +0200
remove unreachable-code
Diffstat:
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/build.ninja b/build.ninja
@@ -26,6 +26,7 @@ CCFLAGS = $$CCFLAGS $
-Werror=c2x-extensions $
-Werror=float-conversion $
-Werror=pedantic $
+ -Werror=unreachable-code $
subninja src/librunit.ninja
subninja src/runsv.ninja
diff --git a/src/runsv.c b/src/runsv.c
@@ -615,5 +615,4 @@ int main(int argc, char **argv) {
}
}
}
- _exit(0);
}
diff --git a/src/runsvdir.c b/src/runsvdir.c
@@ -289,6 +289,4 @@ int main(int argc, char **argv)
_exit(111);
}
}
- /* not reached */
- _exit(0);
}