]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kconfig: fix set but not used variables
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Sat, 20 Aug 2011 05:28:53 +0000 (02:28 -0300)
committerArnaud Lacombe <lacombar@gmail.com>
Tue, 30 Aug 2011 00:22:26 +0000 (20:22 -0400)
Some variables were being set but never used, which was triggering
warnings in GCC >= 4.6.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
scripts/kconfig/lxdialog/textbox.c

index c704712d02271431fa9c42d0cd95be9c2ab9d988..154c2dd245b77536de60fd344d46e49dfbe41520 100644 (file)
@@ -320,7 +320,6 @@ static void print_page(WINDOW * win, int height, int width)
  */
 static void print_line(WINDOW * win, int row, int width)
 {
-       int y, x;
        char *line;
 
        line = get_line();
@@ -329,10 +328,10 @@ static void print_line(WINDOW * win, int row, int width)
        waddch(win, ' ');
        waddnstr(win, line, MIN(strlen(line), width - 2));
 
-       getyx(win, y, x);
        /* Clear 'residue' of previous line */
 #if OLD_NCURSES
        {
+               int x = getcurx(win);
                int i;
                for (i = 0; i < width - x; i++)
                        waddch(win, ' ');