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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
781,
|
||||
/**/
|
||||
780,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user