diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 08:58:37 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 09:01:02 +0200 |
commit | 6c384869373c6a1287e9523dbd092dcde4b58c0e (patch) | |
tree | 7f2e8755ecbeb0978fcd4beaa08a53a2a4b3fb00 | |
parent | 5fe5ebf26a3906f5ff29d4fc455865f3a258b804 (diff) |
call: Fix warning about set but not used variable.
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 <ralf@linux-mips.org>
-rw-r--r-- | call/menu.c | 6 |
1 files changed, 2 insertions, 4 deletions
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++) |