Commit e9882ac0e53332f6d7ab776e7a214a9cfbf3e4b4

Authored by Raghavendra D Prabhu
Committed by Michal Marek
1 parent 5c74cd4cc7

nconfig: Avoid Wunused-but-set warning

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

scripts/kconfig/nconf.c
... ... @@ -1067,7 +1067,6 @@
1067 1067 struct menu *submenu = 0;
1068 1068 const char *prompt = menu_get_prompt(menu);
1069 1069 struct symbol *sym;
1070   - struct menu *active_menu = NULL;
1071 1070 int res;
1072 1071 int current_index = 0;
1073 1072 int last_top_row = 0;
... ... @@ -1152,7 +1151,6 @@
1152 1151 continue;
1153 1152  
1154 1153 submenu = (struct menu *) item_data();
1155   - active_menu = (struct menu *)item_data();
1156 1154 if (!submenu || !menu_is_visible(submenu))
1157 1155 continue;
1158 1156 if (submenu)