mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 13:01:11 +08:00
Replace fallthrough comments with __fallthrough__
Defined in config.h
This commit is contained in:
parent
df546e01f6
commit
efa2cf0cb6
@ -1071,7 +1071,7 @@ static wcstring escape_string_pcre2(const wcstring &in) {
|
||||
case L'-':
|
||||
case L']':
|
||||
out.push_back('\\');
|
||||
/* FALLTHROUGH */
|
||||
__fallthrough__
|
||||
default:
|
||||
out.push_back(c);
|
||||
}
|
||||
|
@ -947,7 +947,7 @@ expand_result_t expander_t::stage_cmdsubst(wcstring input, completion_receiver_t
|
||||
return expand_result_t::ok;
|
||||
case 1:
|
||||
append_cmdsub_error(errors, start, end, L"command substitutions not allowed here");
|
||||
/* intentionally falls through */
|
||||
__fallthrough__
|
||||
case -1:
|
||||
default:
|
||||
return expand_result_t::make_error(STATUS_EXPAND_ERROR);
|
||||
|
@ -377,8 +377,8 @@ static void job_or_process_extent(bool process, const wchar_t *buff, size_t curs
|
||||
if (!process) {
|
||||
break;
|
||||
}
|
||||
__fallthrough__
|
||||
}
|
||||
/* FALLTHROUGH */
|
||||
case token_type_t::end:
|
||||
case token_type_t::background:
|
||||
case token_type_t::andand:
|
||||
|
Loading…
x
Reference in New Issue
Block a user