0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0781: compiler warning for not using value in Lua

Problem:    Compiler warning for not using value in Lua.
Solution:   Add "(void)".
This commit is contained in:
Bram Moolenaar
2020-05-17 16:53:56 +02:00
parent 2d2970ea59
commit 9309eb2f28
2 changed files with 3 additions and 1 deletions

View File

@@ -2124,7 +2124,7 @@ luaopen_vim(lua_State *L)
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;
}