check-init.c
30.9 KB
-
check-init.c (current_switch_has_default): New static field. · a5cb134d
* 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
Per Bothner committed