mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 04:41:15 -03:00
lint: problems with default in switch statements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user