aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support
diff options
context:
space:
mode:
authorGravatar Alexey Firago <alexey_firago@mentor.com>2017-07-13 18:37:49 +0300
committerGravatar Alexey Firago <alexey_firago@mentor.com>2017-07-15 22:24:02 +0300
commitd50e01d041060e32a5fcb0cfd2e100dcb5767ff4 (patch)
tree7b9d5906b9b122cefc4a4dba022ee17dc2683fec /src/core/lib/support
parented3ad4b386a9b58ee6a9722dbfe1de5f0d63ca5f (diff)
Fix implicit fallthrough warnings on GCC 7.x
Add fallthrough comments to keep GCC >= 7.x happy. Signed-off-by: Alexey Firago <alexey_firago@mentor.com>
Diffstat (limited to 'src/core/lib/support')
-rw-r--r--src/core/lib/support/murmur_hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/support/murmur_hash.c b/src/core/lib/support/murmur_hash.c
index f329611818..f06b970de7 100644
--- a/src/core/lib/support/murmur_hash.c
+++ b/src/core/lib/support/murmur_hash.c
@@ -62,8 +62,10 @@ uint32_t gpr_murmur_hash3(const void *key, size_t len, uint32_t seed) {
switch (len & 3) {
case 3:
k1 ^= ((uint32_t)tail[2]) << 16;
+ /* fallthrough */
case 2:
k1 ^= ((uint32_t)tail[1]) << 8;
+ /* fallthrough */
case 1:
k1 ^= tail[0];
k1 *= c1;