src/expand: update comment for fallthrough to GCC standard

As suggested in 75db3b4ff4 (r33153119)
This commit is contained in:
David Adam 2019-05-28 23:20:20 +08:00
parent b5cf9e52ca
commit 7fe93c7518

View file

@ -885,8 +885,9 @@ expand_result_t expander_t::stage_cmdsubst(wcstring input, std::vector<completio
case 0:
append_completion(out, std::move(input));
break;
case 1: /* fallthroughs intentional */
case 1:
append_cmdsub_error(errors, start, L"Command substitutions not allowed");
/* intentionally falls through */
case -1:
default:
return expand_result_t::error;