Hi,
as of #533729, the compiler will emit an -Wimplicit-fallthrough warning if a case or default block in a switch statement falls through into another (non-empty) case or default block.
If fallthrough is intended, explicitly say "FALLTHROUGH;" (see
cs.chromium.org for many examples.) Else, insert the missing break that you forgot.
I'd appreciate help in getting the warning enabled on more platforms (android, windows, mac, chromecast, headless, ...). If you're interested in helping out, find "Wimplicit-fallthrough" in build/config/compiler/BUILD.gn , tweak the conditional above it so it's true on your platform, build, and fix warnings you run into.
https://crbug.com/177475 has many many example CLs. Maybe announce on the bug that you're working on a platform, to reduce duplicate work.
Nico
ps: The warning looks like so (so that search can find this mail if you search for the warning text).
../../net/http/http_pipelined_host_impl.cc:159:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
case PIPELINE_UNKNOWN:
^
../../net/http/http_pipelined_host_impl.cc:159:5: note: insert 'FALLTHROUGH;' to silence this warning
case PIPELINE_UNKNOWN:
^
FALLTHROUGH
;
../../net/http/http_pipelined_host_impl.cc:159:5: note: insert 'break;' to avoid fall-through
case PIPELINE_UNKNOWN:
^
break;