check-init.c (current_switch_has_default): New static field.
* check-init.c (current_switch_has_default): New static field. (check_init): Case DEFAULT_EXPR: Set current_switch_has_default. Case SWITCH_EXPR: Save/restore current_switch_has_default. If no DEFAULT_EXPR seen, simulate a default alternative that copies state. From-SVN: r47833
Showing
Please
register
or
sign in
to comment