mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
lint: goto and dead code
This commit is contained in:
parent
003ea83410
commit
23c3101440
1 changed files with 6 additions and 4 deletions
|
@ -597,8 +597,7 @@ int builtin_printf_state_t::print_formatted(const wchar_t *format, int argc, wch
|
|||
}
|
||||
|
||||
modify_allowed_format_specifiers(ok, "aAcdeEfFgGiosuxX", true);
|
||||
|
||||
for (;; f++, direc_length++) {
|
||||
for (bool continue_looking_for_flags = true; continue_looking_for_flags;) {
|
||||
switch (*f) {
|
||||
case L'I':
|
||||
case L'\'': {
|
||||
|
@ -619,12 +618,15 @@ int builtin_printf_state_t::print_formatted(const wchar_t *format, int argc, wch
|
|||
break;
|
||||
}
|
||||
default: {
|
||||
goto no_more_flag_characters;
|
||||
continue_looking_for_flags = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (continue_looking_for_flags) {
|
||||
f++;
|
||||
direc_length++;
|
||||
}
|
||||
}
|
||||
no_more_flag_characters:;
|
||||
|
||||
if (*f == L'*') {
|
||||
++f;
|
||||
|
|
Loading…
Reference in a new issue