forked from aniani/vim
updated for version 7.3.820
Problem: Build errors and warnings when building with small features and
Lua, Perl or Ruby.
Solution: Add #ifdefs and UNUSED.
This commit is contained in:
@@ -845,8 +845,9 @@ luaV_dict_len (lua_State *L)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
luaV_dict_iter (lua_State *L)
|
luaV_dict_iter (lua_State *L UNUSED)
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
|
hashitem_T *hi = (hashitem_T *) lua_touserdata(L, lua_upvalueindex(2));
|
||||||
int n = lua_tointeger(L, lua_upvalueindex(3));
|
int n = lua_tointeger(L, lua_upvalueindex(3));
|
||||||
dictitem_T *di;
|
dictitem_T *di;
|
||||||
@@ -860,6 +861,9 @@ luaV_dict_iter (lua_State *L)
|
|||||||
lua_pushinteger(L, n - 1);
|
lua_pushinteger(L, n - 1);
|
||||||
lua_replace(L, lua_upvalueindex(3));
|
lua_replace(L, lua_upvalueindex(3));
|
||||||
return 2;
|
return 2;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
@@ -600,9 +600,9 @@ msg_split(s, attr)
|
|||||||
*/
|
*/
|
||||||
char_u *
|
char_u *
|
||||||
eval_to_string(arg, nextcmd, dolist)
|
eval_to_string(arg, nextcmd, dolist)
|
||||||
char_u *arg;
|
char_u *arg UNUSED;
|
||||||
char_u **nextcmd;
|
char_u **nextcmd UNUSED;
|
||||||
int dolist;
|
int dolist UNUSED;
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1210,21 +1210,21 @@ static VALUE window_set_height(VALUE self, VALUE height)
|
|||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE window_width(VALUE self)
|
static VALUE window_width(VALUE self UNUSED)
|
||||||
{
|
{
|
||||||
win_T *win = get_win(self);
|
return INT2NUM(W_WIDTH(get_win(self)));
|
||||||
|
|
||||||
return INT2NUM(win->w_width);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE window_set_width(VALUE self, VALUE width)
|
static VALUE window_set_width(VALUE self UNUSED, VALUE width)
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_VERTSPLIT
|
||||||
win_T *win = get_win(self);
|
win_T *win = get_win(self);
|
||||||
win_T *savewin = curwin;
|
win_T *savewin = curwin;
|
||||||
|
|
||||||
curwin = win;
|
curwin = win;
|
||||||
win_setwidth(NUM2INT(width));
|
win_setwidth(NUM2INT(width));
|
||||||
curwin = savewin;
|
curwin = savewin;
|
||||||
|
#endif
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
820,
|
||||||
/**/
|
/**/
|
||||||
819,
|
819,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user