summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-28 14:47:53 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-28 14:47:53 +0900
commit59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d (patch)
tree68bf3a94d919657469c3fdb7ad2204761571c9bf /read-cache.c
parentbfbc2fccfdff0fe189337de67e16fc132b8ee2a5 (diff)
parent1cf01a34eaccd6da613dba82291666db237916ab (diff)
downloadgit-59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d.tar.gz
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
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-cache.c b/read-cache.c
index cdcd11c71e..65f4fe8375 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -220,6 +220,7 @@ static int ce_modified_check_fs(const struct cache_entry *ce, struct stat *st)
case S_IFDIR:
if (S_ISGITLINK(ce->ce_mode))
return ce_compare_gitlink(ce) ? DATA_CHANGED : 0;
+ /* else fallthrough */
default:
return TYPE_CHANGED;
}