1
0
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:
Witold Filipczyk 2010-07-26 09:30:11 +02:00 committed by Witold Filipczyk
parent dfd399c370
commit 98a7ca3635
2 changed files with 2 additions and 2 deletions

View File

@ -778,7 +778,7 @@ handle_ret_eval(struct session *ses)
int oldtop = lua_gettop(L);
if (prepare_lua(ses) == 0) {
luaL_dostring(L, expr);
(void)luaL_dostring(L, expr);
lua_settop(L, oldtop);
finish_lua();
}

View File

@ -204,7 +204,7 @@ static enum evhook_status
script_hook_quit(va_list ap, void *data)
{
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();
}