Skip to content

Commit

Permalink
nconfig: Avoid Wunused-but-set warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
ronin13 authored and michal42 committed Jul 13, 2011
1 parent 5c74cd4 commit e9882ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/kconfig/nconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e9882ac

Please sign in to comment.