aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorJustin P. Mattock <justinmattock@gmail.com>2010-06-11 16:41:04 -0400
committerMichal Marek <mmarek@suse.cz>2010-06-11 18:07:50 -0400
commit60c8eca69f7fb2820677a635d921866f66727fcb (patch)
tree118176c824f125ed4f36a469188cdd11b0967874 /scripts/kconfig
parente7401d8321f89a3785a395ba307c720e2b390f96 (diff)
scripts:conf.c Fix warning: variable 'type' set but not used
Not sure if this is correct or not, but with make menuconfig HOSTCC scripts/kconfig/conf.o scripts/kconfig/conf.c: In function 'conf_sym': scripts/kconfig/conf.c:159:6: warning: variable 'type' set but not used scripts/kconfig/conf.c: In function 'conf_choice': scripts/kconfig/conf.c:231:6: warning: variable 'type' set but not used HOSTLD scripts/kconfig/mconf I get this using gcc 4.6.0 the below change fixes this form me. Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/conf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 3fa4abf3b084..bde01b4200ee 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -163,14 +163,12 @@ static int conf_string(struct menu *menu)
163static int conf_sym(struct menu *menu) 163static int conf_sym(struct menu *menu)
164{ 164{
165 struct symbol *sym = menu->sym; 165 struct symbol *sym = menu->sym;
166 int type;
167 tristate oldval, newval; 166 tristate oldval, newval;
168 167
169 while (1) { 168 while (1) {
170 printf("%*s%s ", indent - 1, "", _(menu->prompt->text)); 169 printf("%*s%s ", indent - 1, "", _(menu->prompt->text));
171 if (sym->name) 170 if (sym->name)
172 printf("(%s) ", sym->name); 171 printf("(%s) ", sym->name);
173 type = sym_get_type(sym);
174 putchar('['); 172 putchar('[');
175 oldval = sym_get_tristate_value(sym); 173 oldval = sym_get_tristate_value(sym);
176 switch (oldval) { 174 switch (oldval) {
@@ -235,11 +233,9 @@ static int conf_choice(struct menu *menu)
235{ 233{
236 struct symbol *sym, *def_sym; 234 struct symbol *sym, *def_sym;
237 struct menu *child; 235 struct menu *child;
238 int type;
239 bool is_new; 236 bool is_new;
240 237
241 sym = menu->sym; 238 sym = menu->sym;
242 type = sym_get_type(sym);
243 is_new = !sym_has_value(sym); 239 is_new = !sym_has_value(sym);
244 if (sym_is_changable(sym)) { 240 if (sym_is_changable(sym)) {
245 conf_sym(menu); 241 conf_sym(menu);