From: Rich Felker Date: Fri, 18 Jul 2014 01:37:10 +0000 (-0400) Subject: remove useless infinite loop from end of exit function X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=5cc187215681c2fc1563ad5136c389249aa3f70e;p=musl 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. --- 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(;;); }