diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-18 12:35:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-18 12:35:47 +0200 |
commit | 0d2e4fce8d0bb0725de5b1d24fc48008e081bb91 (patch) | |
tree | 7b7ae120db9cc3b909e83f86eeb10c6126cd8b5e /src/if_lua.c | |
parent | 55d5c0348c3afbfb9233487362e46dc633cd94fb (diff) | |
download | vim-git-0d2e4fce8d0bb0725de5b1d24fc48008e081bb91.tar.gz |
Make it easier to build with Lua. Remove compiler warnings.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index d05c1e335..133f2fc5f 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -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; } } |