summaryrefslogtreecommitdiff
path: root/src/exit/exit.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-17 21:37:10 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-17 21:37:10 -0400
commit5cc187215681c2fc1563ad5136c389249aa3f70e (patch)
tree5bb8c1e97f52da7b183f38f03e597a62360b2994 /src/exit/exit.c
parent72ed3d47e567b1635a35d3c1d174c8a8b2787e30 (diff)
downloadmusl-5cc187215681c2fc1563ad5136c389249aa3f70e.tar.gz
remove useless infinite loop from end of exit function
this was originally added as a cheap but portable way to quell warnings about reaching the end of a function that does not return, but since _Exit is marked _Noreturn, it's not needed. removing it makes the call to _Exit into a tail call and shaves off a few bytes of code from minimal static programs.
Diffstat (limited to 'src/exit/exit.c')
-rw-r--r--src/exit/exit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/exit/exit.c b/src/exit/exit.c
index 27fb3e29..163d8f1b 100644
--- a/src/exit/exit.c
+++ b/src/exit/exit.c
@@ -31,5 +31,4 @@ _Noreturn void exit(int code)
__stdio_exit();
_Exit(code);
- for(;;);
}