|
@@ -128,6 +128,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
|
|
sym->flags |= def_flags;
|
|
sym->flags |= def_flags;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ /* fall through */
|
|
case S_BOOLEAN:
|
|
case S_BOOLEAN:
|
|
if (p[0] == 'y') {
|
|
if (p[0] == 'y') {
|
|
sym->def[def].tri = yes;
|
|
sym->def[def].tri = yes;
|
|
@@ -148,6 +149,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
|
|
sym->type = S_STRING;
|
|
sym->type = S_STRING;
|
|
goto done;
|
|
goto done;
|
|
}
|
|
}
|
|
|
|
+ /* fall through */
|
|
case S_STRING:
|
|
case S_STRING:
|
|
if (*p++ != '"')
|
|
if (*p++ != '"')
|
|
break;
|
|
break;
|
|
@@ -162,6 +164,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p)
|
|
conf_warning("invalid string found");
|
|
conf_warning("invalid string found");
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
+ /* fall through */
|
|
case S_INT:
|
|
case S_INT:
|
|
case S_HEX:
|
|
case S_HEX:
|
|
done:
|
|
done:
|
|
@@ -237,6 +240,7 @@ load:
|
|
case S_STRING:
|
|
case S_STRING:
|
|
if (sym->def[def].val)
|
|
if (sym->def[def].val)
|
|
free(sym->def[def].val);
|
|
free(sym->def[def].val);
|
|
|
|
+ /* fall through */
|
|
default:
|
|
default:
|
|
sym->def[def].val = NULL;
|
|
sym->def[def].val = NULL;
|
|
sym->def[def].tri = no;
|
|
sym->def[def].tri = no;
|
|
@@ -363,6 +367,7 @@ int conf_read(const char *name)
|
|
break;
|
|
break;
|
|
if (!sym_is_choice(sym))
|
|
if (!sym_is_choice(sym))
|
|
goto sym_ok;
|
|
goto sym_ok;
|
|
|
|
+ /* fall through */
|
|
default:
|
|
default:
|
|
if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val))
|
|
if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val))
|
|
goto sym_ok;
|
|
goto sym_ok;
|