lua-users home
lua-l archive

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


> loslib.c (here loslib.cpp):
> =static int os_exit (lua_State *L) {
> =  exit(luaL_optint(L, 1, EXIT_SUCCESS));
> +  return 0;
> =}

Other compilers know that exit never returns and complain that "return 0"
is never reached. :-(

See for instance these threads:

http://lua-users.org/lists/lua-l/2008-01/msg00367.html
http://lua-users.org/lists/lua-l/2006-09/msg00872.html
http://lua-users.org/lists/lua-l/2002-06/msg00063.html

It seems an unsolvable issue... (Note the dates!)