lint: problems with default in switch statements

This commit is contained in:
Kurtis Rader
2016-11-02 18:29:14 -07:00
parent 72e687296b
commit f05fe4e292
11 changed files with 44 additions and 39 deletions

View File

@@ -266,6 +266,9 @@ void tokenizer_t::read_string() {
do_loop = 0;
break;
}
default: {
break; // ignore other chars
}
}
break;
}
@@ -286,6 +289,9 @@ void tokenizer_t::read_string() {
do_loop = 0;
break;
}
default: {
break; // ignore other chars
}
}
break;
}
@@ -707,10 +713,7 @@ bool move_word_state_machine_t::consume_char_path_components(wchar_t c) {
break;
}
case s_end:
default: {
// We won't get here, but keep the compiler happy.
break;
}
default: { break; }
}
}
return consumed;
@@ -761,10 +764,6 @@ bool move_word_state_machine_t::consume_char(wchar_t c) {
case move_word_style_whitespace: {
return consume_char_whitespace(c);
}
default: {
DIE("unhandled style");
break;
}
}
}