0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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:
Bram Moolenaar
2013-02-14 22:19:51 +01:00
parent b2c5a5ac79
commit feeaa688eb
4 changed files with 15 additions and 9 deletions

View File

@@ -1210,21 +1210,21 @@ static VALUE window_set_height(VALUE self, VALUE height)
return height;
}
static VALUE window_width(VALUE self)
static VALUE window_width(VALUE self UNUSED)
{
win_T *win = get_win(self);
return INT2NUM(win->w_width);
return INT2NUM(W_WIDTH(get_win(self)));
}
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 *savewin = curwin;
curwin = win;
win_setwidth(NUM2INT(width));
curwin = savewin;
#endif
return width;
}