Commit 60c8eca69f7fb2820677a635d921866f66727fcb
Committed by
Michal Marek
1 parent
e7401d8321
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff
scripts/kconfig/conf.c
... | ... | @@ -163,14 +163,12 @@ |
163 | 163 | static int conf_sym(struct menu *menu) |
164 | 164 | { |
165 | 165 | struct symbol *sym = menu->sym; |
166 | - int type; | |
167 | 166 | tristate oldval, newval; |
168 | 167 | |
169 | 168 | while (1) { |
170 | 169 | printf("%*s%s ", indent - 1, "", _(menu->prompt->text)); |
171 | 170 | if (sym->name) |
172 | 171 | printf("(%s) ", sym->name); |
173 | - type = sym_get_type(sym); | |
174 | 172 | putchar('['); |
175 | 173 | oldval = sym_get_tristate_value(sym); |
176 | 174 | switch (oldval) { |
177 | 175 | |
... | ... | @@ -235,11 +233,9 @@ |
235 | 233 | { |
236 | 234 | struct symbol *sym, *def_sym; |
237 | 235 | struct menu *child; |
238 | - int type; | |
239 | 236 | bool is_new; |
240 | 237 | |
241 | 238 | sym = menu->sym; |
242 | - type = sym_get_type(sym); | |
243 | 239 | is_new = !sym_has_value(sym); |
244 | 240 | if (sym_is_changable(sym)) { |
245 | 241 | conf_sym(menu); |