Roberto Ierusalimschy writes: > Can you try this trick? > static int os_exit (lua_State *L) { > return (exit(luaL_optint(L, 1, EXIT_SUCCESS)), 0); /* avoid warnings */ > } MSVC2005 still recognizes that the "return" is unreachable.