From: Geert Bosch Date: Fri, 23 Jun 2017 20:45:33 +0000 (-0400) Subject: Add some fallthrough comments to work around GCC compiler warnings X-Git-Tag: v3.3.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c448a4566db97676b2de1f7a270d3f8daad013b;p=thirdparty%2Fccache.git Add some fallthrough comments to work around GCC compiler warnings --- diff --git a/murmurhashneutral2.c b/murmurhashneutral2.c index 53319dfb6..d63e0a120 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 f048d972f..8b4783a0d 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;