aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRaghavendra D Prabhu <rprabhu@wnohang.net>2011-07-09 12:24:49 -0400
committerMichal Marek <mmarek@suse.cz>2011-07-13 07:47:09 -0400
commite9882ac0e53332f6d7ab776e7a214a9cfbf3e4b4 (patch)
tree7da87e963bd51a7cce5ed7dfb12f39e1f8e67204 /scripts
parent5c74cd4cc7e7ad9117789e0ca22892a42f87d890 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/nconf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index da9f5c49d886..ce47e26cbed2 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -1067,7 +1067,6 @@ static void conf(struct menu *menu)
1067 struct menu *submenu = 0; 1067 struct menu *submenu = 0;
1068 const char *prompt = menu_get_prompt(menu); 1068 const char *prompt = menu_get_prompt(menu);
1069 struct symbol *sym; 1069 struct symbol *sym;
1070 struct menu *active_menu = NULL;
1071 int res; 1070 int res;
1072 int current_index = 0; 1071 int current_index = 0;
1073 int last_top_row = 0; 1072 int last_top_row = 0;
@@ -1152,7 +1151,6 @@ static void conf(struct menu *menu)
1152 continue; 1151 continue;
1153 1152
1154 submenu = (struct menu *) item_data(); 1153 submenu = (struct menu *) item_data();
1155 active_menu = (struct menu *)item_data();
1156 if (!submenu || !menu_is_visible(submenu)) 1154 if (!submenu || !menu_is_visible(submenu))
1157 continue; 1155 continue;
1158 if (submenu) 1156 if (submenu)