lkml.org 
[lkml]   [2011]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] kconfig: fix set but not used variables
From
Hi,

On Mon, Aug 15, 2011 at 10:41 AM, Lucas De Marchi
<lucas.demarchi@profusion.mobi> wrote:
> Some variables were being set but never used, which was triggering
> warnings in recent versions of GCC.
>
Please be specific about the version of gcc triggering the warning. In
5 years, "recent version" will mean something than today.

Thanks,
- Arnaud

> Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
> ---
>  scripts/kconfig/lxdialog/textbox.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c
> index c704712..154c2dd 100644
> --- a/scripts/kconfig/lxdialog/textbox.c
> +++ b/scripts/kconfig/lxdialog/textbox.c
> @@ -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, ' ');
> --
> 1.7.6
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2011-08-20 02:31    [W:0.112 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site