lint: missing default in switch statements

This commit is contained in:
Kurtis Rader
2016-10-29 17:25:48 -07:00
parent fb979922b3
commit b0b2182535
17 changed files with 220 additions and 57 deletions

View File

@@ -534,6 +534,10 @@ parse_execution_result_t parse_execution_context_t::run_switch_statement(
case EXPAND_OK: {
break;
}
default: {
DIE("unexpected expand_string() return value");
break;
}
}
if (result == parse_execution_success && switch_values_expanded.size() != 1) {
@@ -945,6 +949,10 @@ parse_execution_result_t parse_execution_context_t::determine_arguments(
case EXPAND_OK: {
break;
}
default: {
DIE("unexpected expand_string() return value");
break;
}
}
// Now copy over any expanded arguments. Do it using swap() to avoid extra allocations; this