From afc080bf645a0ae5dc3ad09b306fc5d805653ce5 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 17 Jun 2013 09:10:35 +0200 Subject: call: Fix warning about set but not used variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc -DHAVE_CONFIG_H -I. -I.. -O2 -Wall -Wno-pointer-sign -MT call.o -MD -MP -MF .deps/call.Tpo -c -o call.o call.c call.c: In function ‘wrdstatw’: call.c:482:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] mv -f .deps/call.Tpo .deps/call.Po Signed-off-by: Ralf Baechle --- call/call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'call') diff --git a/call/call.c b/call/call.c index 9977554..21fb4f5 100644 --- a/call/call.c +++ b/call/call.c @@ -479,7 +479,7 @@ WINDOW *opnstatw(int mode, wint * wintab, char *s, int lines, int cols) void wrdstatw(WINDOW * win, char s[]) { - int y, x; + int y; if (win == NULL) { printf(" %s\n", s); @@ -487,7 +487,7 @@ void wrdstatw(WINDOW * win, char s[]) return; } waddstr(win, s); - getyx(win, y, x); + y = getcury(win); wmove(win, y + 1, 2); wrefresh(win); } -- cgit v1.2.3