Commit 702a9450 authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Arnaud Lacombe

kconfig: fix set but not used variables

Some variables were being set but never used, which was triggering
warnings in GCC >= 4.6.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@profusion.mobi>
Signed-off-by: default avatarArnaud Lacombe <lacombar@gmail.com>
parent 564899f9
...@@ -320,7 +320,6 @@ static void print_page(WINDOW * win, int height, int width) ...@@ -320,7 +320,6 @@ static void print_page(WINDOW * win, int height, int width)
*/ */
static void print_line(WINDOW * win, int row, int width) static void print_line(WINDOW * win, int row, int width)
{ {
int y, x;
char *line; char *line;
line = get_line(); line = get_line();
...@@ -329,10 +328,10 @@ static void print_line(WINDOW * win, int row, int width) ...@@ -329,10 +328,10 @@ static void print_line(WINDOW * win, int row, int width)
waddch(win, ' '); waddch(win, ' ');
waddnstr(win, line, MIN(strlen(line), width - 2)); waddnstr(win, line, MIN(strlen(line), width - 2));
getyx(win, y, x);
/* Clear 'residue' of previous line */ /* Clear 'residue' of previous line */
#if OLD_NCURSES #if OLD_NCURSES
{ {
int x = getcurx(win);
int i; int i;
for (i = 0; i < width - x; i++) for (i = 0; i < width - x; i++)
waddch(win, ' '); waddch(win, ' ');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment