lua-users home
lua-l archive

Re: [ANN] Lua 5.2.0 (rc2) now available

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> "..\src\lua\loslib.c", line 278: warning #940-D: missing return statement at
> end of non-void function "os_exit"
> }
> ^
> 
> [...]
> 
> The first warning is probably unavoidable, because if a "return 0" is
> added at the end of the function, GCC will probably complain...
Maybe this?
277c277
< exit(status);
---
> return (exit(status), 0);
(I am sure we already had a long disussion in this list about this issue,
without any good conclusions, but I could not find it...)
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /