mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/curses/curses.c (window_cury, window_curx, window_maxy,
window_maxx, window_begy, window_begx): use RB_UNUSED_VAR() to suppress unused-but-set-variable warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
be7bf5aa0c
commit
cdabc58f8e
2 changed files with 10 additions and 10 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sat Dec 29 21:51:30 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/curses/curses.c (window_cury, window_curx, window_maxy,
|
||||||
|
window_maxx, window_begy, window_begx): use RB_UNUSED_VAR()
|
||||||
|
to suppress unused-but-set-variable warnings.
|
||||||
|
|
||||||
Sat Dec 29 16:45:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
Sat Dec 29 16:45:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
* iseq.c (RubyVM::InstructionSequence): rdoc formatting
|
* iseq.c (RubyVM::InstructionSequence): rdoc formatting
|
||||||
|
|
|
@ -1663,11 +1663,10 @@ static VALUE
|
||||||
window_cury(VALUE obj)
|
window_cury(VALUE obj)
|
||||||
{
|
{
|
||||||
struct windata *winp;
|
struct windata *winp;
|
||||||
int x, y;
|
int RB_UNUSED_VAR(x), y;
|
||||||
|
|
||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
getyx(winp->window, y, x);
|
getyx(winp->window, y, x);
|
||||||
(void)x;
|
|
||||||
return INT2FIX(y);
|
return INT2FIX(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1680,11 +1679,10 @@ static VALUE
|
||||||
window_curx(VALUE obj)
|
window_curx(VALUE obj)
|
||||||
{
|
{
|
||||||
struct windata *winp;
|
struct windata *winp;
|
||||||
int x, y;
|
int x, RB_UNUSED_VAR(y);
|
||||||
|
|
||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
getyx(winp->window, y, x);
|
getyx(winp->window, y, x);
|
||||||
(void)y;
|
|
||||||
return INT2FIX(x);
|
return INT2FIX(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1705,7 +1703,6 @@ window_maxy(VALUE obj)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
getmaxyx(winp->window, y, x);
|
getmaxyx(winp->window, y, x);
|
||||||
(void)x;
|
|
||||||
return INT2FIX(y);
|
return INT2FIX(y);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -1730,7 +1727,6 @@ window_maxx(VALUE obj)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
getmaxyx(winp->window, y, x);
|
getmaxyx(winp->window, y, x);
|
||||||
(void)y;
|
|
||||||
return INT2FIX(x);
|
return INT2FIX(x);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -1747,12 +1743,11 @@ static VALUE
|
||||||
window_begy(VALUE obj)
|
window_begy(VALUE obj)
|
||||||
{
|
{
|
||||||
struct windata *winp;
|
struct windata *winp;
|
||||||
int x, y;
|
int RB_UNUSED_VAR(x), y;
|
||||||
|
|
||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
#ifdef getbegyx
|
#ifdef getbegyx
|
||||||
getbegyx(winp->window, y, x);
|
getbegyx(winp->window, y, x);
|
||||||
(void)x;
|
|
||||||
#else
|
#else
|
||||||
y = winp->window->_begy;
|
y = winp->window->_begy;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1768,12 +1763,11 @@ static VALUE
|
||||||
window_begx(VALUE obj)
|
window_begx(VALUE obj)
|
||||||
{
|
{
|
||||||
struct windata *winp;
|
struct windata *winp;
|
||||||
int x, y;
|
int x, RB_UNUSED_VAR(y);
|
||||||
|
|
||||||
GetWINDOW(obj, winp);
|
GetWINDOW(obj, winp);
|
||||||
#ifdef getbegyx
|
#ifdef getbegyx
|
||||||
getbegyx(winp->window, y, x);
|
getbegyx(winp->window, y, x);
|
||||||
(void)y;
|
|
||||||
#else
|
#else
|
||||||
x = winp->window->_begx;
|
x = winp->window->_begx;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue