]> git.droids-corp.org - protos/libecoli.git/blobdiff - src/ecoli_murmurhash.c
fix compilation warnings with recent compiler
[protos/libecoli.git] / src / ecoli_murmurhash.c
index 7aafece1d205f05300e2223281392e927510d230..8b45f6ebb5c58d3f727f5bc407686a1cf1c099d1 100644 (file)
@@ -27,8 +27,8 @@ uint32_t ec_murmurhash3(const void *key, int len, uint32_t seed)
        k1 = 0;
 
        switch(len & 3) {
        k1 = 0;
 
        switch(len & 3) {
-       case 3: k1 ^= tail[2] << 16;
-       case 2: k1 ^= tail[1] << 8;
+       case 3: k1 ^= tail[2] << 16; /* fallthrough */
+       case 2: k1 ^= tail[1] << 8; /* fallthrough */
        case 1: k1 ^= tail[0];
                h1 = ec_murmurhash3_add32(h1, k1);
        };
        case 1: k1 ^= tail[0];
                h1 = ec_murmurhash3_add32(h1, k1);
        };