From ea105b99421a31f87333c83cbb580069bc988cfa Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 16 Jun 2017 10:28:40 +0100 Subject: [PATCH] Add fallthrough comment to silence gcc-7 warning Until we switch to C++17 and can use the proper attributes there. Fixes #1437 --- src/hash.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash.cc b/src/hash.cc index 2ef9262d..f5d320e2 100644 --- a/src/hash.cc +++ b/src/hash.cc @@ -50,8 +50,8 @@ size_t hash_data(const char* input, size_t len) uint32_t key = 0; switch (len & 3) { - case 3: key ^= tail[2] << 16; - case 2: key ^= tail[1] << 8; + case 3: key ^= tail[2] << 16; /* fallthrough */ + case 2: key ^= tail[1] << 8; /* fallthrough */ case 1: key ^= tail[0]; key *= c1; key = rotl(key,15);