Changeset 743414b for menu/conf.c


Ignore:
Timestamp:
02/10/2012 09:39:11 AM (12 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
b339c94
Parents:
d7390a5
Message:

Changes slightly the code in menu directory so that "conf"
and "mconf" build without issuing warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • menu/conf.c

    rd7390a5 r743414b  
    180180                                if (menu->sym->help)
    181181                                        help = menu->sym->help;
    182                                 printf("\n%s\n", menu->sym->help);
     182                                printf("\n%s\n", help);
    183183                                def = NULL;
    184184                                break;
     
    196196{
    197197        struct symbol *sym = menu->sym;
    198         int type;
    199198        tristate oldval, newval;
    200199        const char *help;
     
    204203                if (sym->name)
    205204                        printf("(%s) ", sym->name);
    206                 type = sym_get_type(sym);
     205                (void)sym_get_type(sym);
    207206                putchar('[');
    208207                oldval = sym_get_tristate_value(sym);
     
    271270        struct symbol *sym, *def_sym;
    272271        struct menu *child;
    273         int type;
    274272        bool is_new;
    275273
    276274        sym = menu->sym;
    277         type = sym_get_type(sym);
     275        (void)sym_get_type(sym);
    278276        is_new = !sym_has_value(sym);
    279277        if (sym_is_changable(sym)) {
Note: See TracChangeset for help on using the changeset viewer.