]> granicus.if.org Git - vim/commitdiff
patch 8.2.0781: compiler warning for not using value in Lua v8.2.0781
authorBram Moolenaar <Bram@vim.org>
Sun, 17 May 2020 14:53:56 +0000 (16:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 May 2020 14:53:56 +0000 (16:53 +0200)
Problem:    Compiler warning for not using value in Lua.
Solution:   Add "(void)".

src/if_lua.c
src/version.c

index d4cc21f3d0f5c3f803a345c81ecbdf04a37dee99..060cb38cd68aff4bd6d7e5cb70c5ad12d91d2dfe 100644 (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;
 }
 
index 5946964e515804841f54d884aac3c0ebb33dd5ab..641aa88165527f16cb930f9c9b72470d699ac870 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    781,
 /**/
     780,
 /**/