diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-14 22:19:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-14 22:19:51 +0100 |
commit | feeaa688ebfd95281529191718b9194187995f7f (patch) | |
tree | 5c584b72bd4c595553b742bc49e4d7f4ba539897 /src/if_ruby.c | |
parent | b2c5a5ac79848b7f889a8b279eed40be3064feca (diff) | |
download | vim-git-feeaa688ebfd95281529191718b9194187995f7f.tar.gz |
updated for version 7.3.820v7.3.820
Problem: Build errors and warnings when building with small features and
Lua, Perl or Ruby.
Solution: Add #ifdefs and UNUSED.
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index 4ae2d90d1..ce40bbe8a 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -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; } |