mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Silent lua warnings.
This commit is contained in:
parent
dfd399c370
commit
98a7ca3635
@ -778,7 +778,7 @@ handle_ret_eval(struct session *ses)
|
|||||||
int oldtop = lua_gettop(L);
|
int oldtop = lua_gettop(L);
|
||||||
|
|
||||||
if (prepare_lua(ses) == 0) {
|
if (prepare_lua(ses) == 0) {
|
||||||
luaL_dostring(L, expr);
|
(void)luaL_dostring(L, expr);
|
||||||
lua_settop(L, oldtop);
|
lua_settop(L, oldtop);
|
||||||
finish_lua();
|
finish_lua();
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ static enum evhook_status
|
|||||||
script_hook_quit(va_list ap, void *data)
|
script_hook_quit(va_list ap, void *data)
|
||||||
{
|
{
|
||||||
if (!prepare_lua(NULL)) {
|
if (!prepare_lua(NULL)) {
|
||||||
luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
|
(void)luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
|
||||||
finish_lua();
|
finish_lua();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user