nconfig: Avoid Wunused-but-set warning
authorRaghavendra D Prabhu <rprabhu@wnohang.net>
Sat, 9 Jul 2011 16:24:49 +0000 (21:54 +0530)
committerMichal Marek <mmarek@suse.cz>
Wed, 13 Jul 2011 11:47:09 +0000 (13:47 +0200)
I am seeing Wunused-but-set warning while make nconfig.  Looks like
active_menu is not used. Removing it fixes the warning.

Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/nconf.c

index da9f5c49d886098417b066ccef5ffb9578281abe..ce47e26cbed2314337b3e021359e5a4c0c080110 100644 (file)
@@ -1067,7 +1067,6 @@ static void conf(struct menu *menu)
        struct menu *submenu = 0;
        const char *prompt = menu_get_prompt(menu);
        struct symbol *sym;
-       struct menu *active_menu = NULL;
        int res;
        int current_index = 0;
        int last_top_row = 0;
@@ -1152,7 +1151,6 @@ static void conf(struct menu *menu)
                        continue;
 
                submenu = (struct menu *) item_data();
-               active_menu = (struct menu *)item_data();
                if (!submenu || !menu_is_visible(submenu))
                        continue;
                if (submenu)