lua-users home
lua-l archive

[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