summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-08 16:00:16 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-08 16:00:16 +0100
commitfa263a517b5e6c11055fa8fe8517f6a3e102ccc6 (patch)
tree8950c47492cecbd08ff1135f3c055fd964c8f43e /src/if_lua.c
parentf4120a8964851b03a8fee7e15944ba7ef0bcb5a6 (diff)
updated for version 7.3.370v7.3.370
Problem: Compiler warns for unused variable in Lua interface. Solution: Remove the variable.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 5e669045c0..0a7ba46e86 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -1044,13 +1044,12 @@ luaV_window(lua_State *L)
static int
luaV_open(lua_State *L)
{
- luaV_Buffer *b;
char_u *s = NULL;
#ifdef HAVE_SANDBOX
luaV_checksandbox(L);
#endif
if (lua_isstring(L, 1)) s = (char_u *) lua_tostring(L, 1);
- b = luaV_pushbuffer(L, buflist_new(s, NULL, 1L, BLN_LISTED));
+ luaV_pushbuffer(L, buflist_new(s, NULL, 1L, BLN_LISTED));
return 1;
}