summaryrefslogtreecommitdiffstats
path: root/src/basic/MurmurHash2.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-01 01:35:04 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-01 01:35:04 +0100
commit2c5248e2454da53dd7378d167324e917bbe99088 (patch)
tree48c7f7067f481a51429d695ebf096c7546e244db /src/basic/MurmurHash2.c
parentjournal/lookup3: silence gcc 7 implicit-fallthrough warning (diff)
downloadsystemd-2c5248e2454da53dd7378d167324e917bbe99088.tar.xz
systemd-2c5248e2454da53dd7378d167324e917bbe99088.zip
MurmurHash: all /* fall through */ comments
Diffstat (limited to 'src/basic/MurmurHash2.c')
-rw-r--r--src/basic/MurmurHash2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/MurmurHash2.c b/src/basic/MurmurHash2.c
index 9020793930..a282a21201 100644
--- a/src/basic/MurmurHash2.c
+++ b/src/basic/MurmurHash2.c
@@ -69,9 +69,9 @@ uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed )
switch(len)
{
- case 3: h ^= data[2] << 16;
- case 2: h ^= data[1] << 8;
- case 1: h ^= data[0];
+ case 3: h ^= data[2] << 16; /* fall through */
+ case 2: h ^= data[1] << 8; /* fall through */
+ case 1: h ^= data[0]; /* fall through */
h *= m;
};