From 6c384869373c6a1287e9523dbd092dcde4b58c0e Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 17 Jun 2013 08:58:37 +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 menu.o -MD -MP -MF .deps/menu.Tpo -c -o menu.o menu.c menu.c: In function ‘p_dwn_menu’: menu.c:132:15: warning: variable ‘pos’ set but not used [-Wunused-but-set-variable] menu.c: In function ‘top_menu’: menu.c:244:11: warning: variable ‘pos’ set but not used [-Wunused-but-set-variable] Signed-off-by: Ralf Baechle --- call/menu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'call/menu.c') diff --git a/call/menu.c b/call/menu.c index 6c0c2d7..285d936 100644 --- a/call/menu.c +++ b/call/menu.c @@ -129,7 +129,7 @@ void menu_write_line(WINDOW * win, int ypos, int menu_breite, int reverse, int p_dwn_menu(wint * wtab, menuitem * menustr, int starty, int startx) { int str_max_length = 0; - int cnt = 0, pos; + int cnt = 0; int ypos, oldypos; int lines = 0; int c; @@ -146,7 +146,6 @@ int p_dwn_menu(wint * wtab, menuitem * menustr, int starty, int startx) wrefresh(menuwin); - pos = 0; menu_write_line(menuwin, 0, str_max_length, TRUE, menustr[0].st_ptr); for (ypos = 1; ypos < lines; ypos++) @@ -241,7 +240,7 @@ int top_menu(wint * wtab, menuitem menustr[], int ystart) { int str_max_length = 0; int str_length = 0; - int cnt, pos; + int cnt; int xpos, oldxpos; int ypos = 0; int items = 0; @@ -268,7 +267,6 @@ int top_menu(wint * wtab, menuitem menustr[], int ystart) wrefresh(menuwin); - pos = 0; menu_write_item(menuwin, 1, TRUE, menustr[0].st_ptr); for (xpos = 1; xpos < items; xpos++) -- cgit v1.2.3