comparison src/if_lua.c @ 20454:070c8a22261d v8.2.0781

patch 8.2.0781: compiler warning for not using value in Lua Commit: https://github.com/vim/vim/commit/9309eb2f28e6ee346c2a5deaa6f9c2b36578522e Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 17 16:53:56 2020 +0200 patch 8.2.0781: compiler warning for not using value in Lua Problem: Compiler warning for not using value in Lua. Solution: Add "(void)".
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 May 2020 17:00:03 +0200
parents 86dde5c4b375
children 25392efa9039
comparison
equal deleted inserted replaced
20453:5ac4138fbaa6 20454:070c8a22261d
2122 lua_newtable(L); // vim table 2122 lua_newtable(L); // vim table
2123 lua_pushvalue(L, 1); // cache table 2123 lua_pushvalue(L, 1); // cache table
2124 luaV_openlib(L, luaV_module, 1); 2124 luaV_openlib(L, luaV_module, 1);
2125 lua_setglobal(L, LUAVIM_NAME); 2125 lua_setglobal(L, LUAVIM_NAME);
2126 // custom code 2126 // custom code
2127 luaL_dostring(L, LUA_VIM_FN_CODE); 2127 (void)luaL_dostring(L, LUA_VIM_FN_CODE);
2128 return 0; 2128 return 0;
2129 } 2129 }
2130 2130
2131 static lua_State * 2131 static lua_State *
2132 luaV_newstate(void) 2132 luaV_newstate(void)