commit | 9309eb2f28e6ee346c2a5deaa6f9c2b36578522e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun May 17 16:53:56 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 17 16:53:56 2020 +0200 |
tree | 5230ed3b033b4fea4de842cd37939afe13e3fee8 | |
parent | 2d2970ea599e83acabee56be548a54a8e6b21007 [diff] [blame] |
patch 8.2.0781: compiler warning for not using value in Lua Problem: Compiler warning for not using value in Lua. Solution: Add "(void)".
diff --git a/src/if_lua.c b/src/if_lua.c index d4cc21f..060cb38 100644 --- a/src/if_lua.c +++ b/src/if_lua.c
@@ -2124,7 +2124,7 @@ luaV_openlib(L, luaV_module, 1); lua_setglobal(L, LUAVIM_NAME); // custom code - luaL_dostring(L, LUA_VIM_FN_CODE); + (void)luaL_dostring(L, LUA_VIM_FN_CODE); return 0; }