diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-19 10:13:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-19 10:13:32 +0000 |
commit | 9373d91585ac9d298ad32722d97bb4d065fc46a9 (patch) | |
tree | da869de31fef57d02fbfd3e9b48d198caf1b893b | |
parent | 15bf3182c65bcd84fe1f4815c767730839f39082 (diff) | |
download | ruby-9373d91585ac9d298ad32722d97bb4d065fc46a9.tar.gz |
suppress unused-but-set-variable warnings
* ext/curses/curses.c (window_cury, window_curx, window_maxy)
(window_maxx, window_begy, window_begx): suppress
unused-but-set-variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/curses/curses.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c index 8a4dcfc621..6a1280898a 100644 --- a/ext/curses/curses.c +++ b/ext/curses/curses.c @@ -1666,6 +1666,7 @@ window_cury(VALUE obj) GetWINDOW(obj, winp); getyx(winp->window, y, x); + (void)x; return INT2FIX(y); } @@ -1682,6 +1683,7 @@ window_curx(VALUE obj) GetWINDOW(obj, winp); getyx(winp->window, y, x); + (void)y; return INT2FIX(x); } @@ -1702,6 +1704,7 @@ window_maxy(VALUE obj) { int x, y; getmaxyx(winp->window, y, x); + (void)x; return INT2FIX(y); } #else @@ -1726,6 +1729,7 @@ window_maxx(VALUE obj) { int x, y; getmaxyx(winp->window, y, x); + (void)y; return INT2FIX(x); } #else @@ -1747,10 +1751,11 @@ window_begy(VALUE obj) GetWINDOW(obj, winp); #ifdef getbegyx getbegyx(winp->window, y, x); - return INT2FIX(y); + (void)x; #else - return INT2FIX(winp->window->_begy); + y = winp->window->_begy; #endif + return INT2FIX(y); } /* @@ -1767,10 +1772,11 @@ window_begx(VALUE obj) GetWINDOW(obj, winp); #ifdef getbegyx getbegyx(winp->window, y, x); - return INT2FIX(x); + (void)y; #else - return INT2FIX(winp->window->_begx); + x = winp->window->_begx; #endif + return INT2FIX(x); } /* |