summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-17 16:53:56 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-17 16:53:56 +0200
commit9309eb2f28e6ee346c2a5deaa6f9c2b36578522e (patch)
tree5230ed3b033b4fea4de842cd37939afe13e3fee8
parent2d2970ea599e83acabee56be548a54a8e6b21007 (diff)
downloadvim-git-9309eb2f28e6ee346c2a5deaa6f9c2b36578522e.tar.gz
patch 8.2.0781: compiler warning for not using value in Luav8.2.0781
Problem: Compiler warning for not using value in Lua. Solution: Add "(void)".
-rw-r--r--src/if_lua.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index d4cc21f3d..060cb38cd 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -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;
}
diff --git a/src/version.c b/src/version.c
index 5946964e5..641aa8816 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 781,
+/**/
780,
/**/
779,