From 3c448a4566db97676b2de1f7a270d3f8daad013b Mon Sep 17 00:00:00 2001 From: Geert Bosch Date: Fri, 23 Jun 2017 16:45:33 -0400 Subject: Add some fallthrough comments to work around GCC compiler warnings --- murmurhashneutral2.c | 4 ++-- util.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/murmurhashneutral2.c b/murmurhashneutral2.c index 53319dfb..d63e0a12 100644 --- a/murmurhashneutral2.c +++ b/murmurhashneutral2.c @@ -30,8 +30,8 @@ murmurhashneutral2(const void *key, int len, unsigned int seed) switch (len) { - case 3: h ^= ((unsigned int) data[2]) << 16; - case 2: h ^= ((unsigned int) data[1]) << 8; + case 3: h ^= ((unsigned int) data[2]) << 16; // Fallthrough. + case 2: h ^= ((unsigned int) data[1]) << 8; // Fallthrough. case 1: h ^= ((unsigned int) data[0]); h *= m; }; diff --git a/util.c b/util.c index f048d972..8b4783a0 100644 --- a/util.c +++ b/util.c @@ -969,10 +969,13 @@ parse_size_with_suffix(const char *str, uint64_t *size) switch (*p) { case 'T': x *= multiplier; + // Fallthrough. case 'G': x *= multiplier; + // Fallthrough. case 'M': x *= multiplier; + // Fallthrough. case 'K': case 'k': x *= multiplier; -- cgit v1.2.1