Add fallthrough comment to silence gcc-7 warning

Until we switch to C++17 and can use the proper attributes there.
Fixes #1437
This commit is contained in:
Maxime Coste 2017-06-16 10:28:40 +01:00
parent 42d7b66b92
commit ea105b9942

View File

@ -50,8 +50,8 @@ size_t hash_data(const char* input, size_t len)
uint32_t key = 0; uint32_t key = 0;
switch (len & 3) switch (len & 3)
{ {
case 3: key ^= tail[2] << 16; case 3: key ^= tail[2] << 16; /* fallthrough */
case 2: key ^= tail[1] << 8; case 2: key ^= tail[1] << 8; /* fallthrough */
case 1: key ^= tail[0]; case 1: key ^= tail[0];
key *= c1; key *= c1;
key = rotl(key,15); key = rotl(key,15);