Skip to content

Commit 60c8eca

Browse files
Justin P. Mattockmichal42
authored andcommitted
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 <[email protected]> Signed-off-by: Michal Marek <[email protected]>
1 parent e7401d8 commit 60c8eca

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/kconfig/conf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,12 @@ static int conf_string(struct menu *menu)
163163
static int conf_sym(struct menu *menu)
164164
{
165165
struct symbol *sym = menu->sym;
166-
int type;
167166
tristate oldval, newval;
168167

169168
while (1) {
170169
printf("%*s%s ", indent - 1, "", _(menu->prompt->text));
171170
if (sym->name)
172171
printf("(%s) ", sym->name);
173-
type = sym_get_type(sym);
174172
putchar('[');
175173
oldval = sym_get_tristate_value(sym);
176174
switch (oldval) {
@@ -235,11 +233,9 @@ static int conf_choice(struct menu *menu)
235233
{
236234
struct symbol *sym, *def_sym;
237235
struct menu *child;
238-
int type;
239236
bool is_new;
240237

241238
sym = menu->sym;
242-
type = sym_get_type(sym);
243239
is_new = !sym_has_value(sym);
244240
if (sym_is_changable(sym)) {
245241
conf_sym(menu);

0 commit comments

Comments
 (0)