0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Make it easier to build with Lua. Remove compiler warnings.

This commit is contained in:
Bram Moolenaar
2010-07-18 12:35:47 +02:00
parent 55d5c0348c
commit 0d2e4fce8d
4 changed files with 24 additions and 23 deletions

View File

@@ -921,7 +921,7 @@ luaV_eval(lua_State *L)
}
static int
luaV_beep(lua_State *L)
luaV_beep(lua_State *L UNUSED)
{
vim_beep();
return 0;
@@ -955,8 +955,8 @@ luaV_buffer(lua_State *L)
{
if (l == 0) break;
}
else if (strncmp(s, buf->b_ffname, l) == 0
|| strncmp(s, buf->b_sfname, l) == 0)
else if (strncmp(s, (char *)buf->b_ffname, l) == 0
|| strncmp(s, (char *)buf->b_sfname, l) == 0)
break;
}
}