From 36375de76fb2b5a43d33154d0754551b1f71544f Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 8 Aug 2017 08:45:28 -0700 Subject: [PATCH] gcc-7/i386: markup intentional fallthroughs Summary: Markup i386 code paths resolving compilation failure under i386 with gcc-7. Signed-off-by: James Page Closes https://github.com/facebook/rocksdb/pull/2700 Differential Revision: D5583047 Pulled By: maysamyabandeh fbshipit-source-id: fe31bcfeaf7cd2d3f51b55f5ae0b3b0cb3788fbc --- util/murmurhash.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/murmurhash.cc b/util/murmurhash.cc index 334ed898e..4d71d5890 100644 --- a/util/murmurhash.cc +++ b/util/murmurhash.cc @@ -113,8 +113,8 @@ unsigned int MurmurHash2 ( const void * key, int len, unsigned int seed ) switch(len) { - case 3: h ^= data[2] << 16; - case 2: h ^= data[1] << 8; + case 3: h ^= data[2] << 16; // fallthrough + case 2: h ^= data[1] << 8; // fallthrough case 1: h ^= data[0]; h *= m; };