Merge branch 'jk/fallthrough'

Many codepaths have been updated to squelch -Wimplicit-fallthrough
warnings from Gcc 7 (which is a good code hygiene).

* jk/fallthrough:
  consistently use "fallthrough" comments in switches
  curl_trace(): eliminate switch fallthrough
  test-line-buffer: simplify command parsing
This commit is contained in:
Junio C Hamano
2017-09-28 14:47:53 +09:00
15 changed files with 30 additions and 28 deletions

View File

@ -113,6 +113,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
if (textconv_object(path, obj_context.mode, &oid, 1, &buf, &size))
break;
/* else fallthrough */
case 'p':
type = sha1_object_info(oid.hash, NULL);