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.
This commit is contained in:
parent
72ed3d47e5
commit
5cc1872156
1 changed files with 0 additions and 1 deletions
|
|
@ -31,5 +31,4 @@ _Noreturn void exit(int code)
|
||||||
__stdio_exit();
|
__stdio_exit();
|
||||||
|
|
||||||
_Exit(code);
|
_Exit(code);
|
||||||
for(;;);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue