[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (rc2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 29 Nov 2011 10:19:32 -0200
> >> return (exit(status), 0);
>
> >> if (L) exit(status); /* test to avoid warnings of 'exit' x 'return' */
> >> return 0;
>
> I have tested the previous two patches on the bunch of compilers
> currently installed on my computer.
> None of them produced a warning for both tricks.
> The first one is probably better because it avoids an additional
> useless test-and-jump.
According to [1], something similar to the first option gave warnings
in MSVC2005.
[1] http://lua-users.org/lists/lua-l/2008-01/msg00375.html
It would be nice if other people could try these options in their
systems.
-- Roberto