From 2e505786d6d9d537f5b6631099862f6b93e2e687 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 30 Jan 2017 12:17:25 +0100 Subject: Suppres implicit-fallthrough from gcc 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some kind of comments are recognized by gcc7 but they are ignored with -Wimplicit-fallthrough=5 and only attributes disable the warning. Reviewed-by: Fabiano FidĂȘncio --- src/util/murmurhash3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') diff --git a/src/util/murmurhash3.c b/src/util/murmurhash3.c index 03d10ff6a..061e64e99 100644 --- a/src/util/murmurhash3.c +++ b/src/util/murmurhash3.c @@ -90,14 +90,17 @@ uint32_t murmurhash3(const char *key, int len, uint32_t seed) switch (len & 3) { case 3: k1 ^= tail[2] << 16; + SSS_ATTRIBUTE_FALLTHROUGH; case 2: k1 ^= tail[1] << 8; + SSS_ATTRIBUTE_FALLTHROUGH; case 1: k1 ^= tail[0]; k1 *= c1; k1 = rotl(k1, 15); k1 *= c2; h1 ^= k1; + break; default: break; } -- cgit