diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/patch_parse.c | 1 | ||||
-rw-r--r-- | src/revparse.c | 5 | ||||
-rw-r--r-- | src/tree.c | 2 | ||||
-rw-r--r-- | src/util.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/patch_parse.c b/src/patch_parse.c index 27c01e96f..acdd45e82 100644 --- a/src/patch_parse.c +++ b/src/patch_parse.c @@ -575,6 +575,7 @@ static int parse_hunk_body( switch (c) { case '\n': prefix = 0; + /* fall through */ case ' ': origin = GIT_DIFF_LINE_CONTEXT; diff --git a/src/revparse.c b/src/revparse.c index 4ab4fb96d..7cb22f476 100644 --- a/src/revparse.c +++ b/src/revparse.c @@ -770,7 +770,6 @@ int revparse__ext( } case '@': - { if (spec[pos+1] == '{') { git_object *temp_object = NULL; @@ -786,10 +785,8 @@ int revparse__ext( if (temp_object != NULL) base_rev = temp_object; break; - } else { - /* Fall through */ } - } + /* fall through */ default: if ((error = ensure_left_hand_identifier_is_not_known_yet(base_rev, reference)) < 0) diff --git a/src/tree.c b/src/tree.c index 6a136a6b7..fdf36f850 100644 --- a/src/tree.c +++ b/src/tree.c @@ -957,7 +957,7 @@ int git_tree_entry_bypath( * walking down the path */ if (path[filename_len + 1] != '\0') break; - + /* fall through */ case '\0': /* If there are no more components in the path, return * this entry */ diff --git a/src/util.c b/src/util.c index 1760a315e..b984b99ee 100644 --- a/src/util.c +++ b/src/util.c @@ -478,9 +478,11 @@ uint32_t git__hash(const void *key, int len, uint32_t seed) switch(len & 3) { case 3: k1 ^= tail[2] << 16; + /* fall through */ case 2: k1 ^= tail[1] << 8; + /* fall through */ case 1: k1 ^= tail[0]; - MURMUR_BLOCK(); + MURMUR_BLOCK(); } h1 ^= len; |