eina inline hash - fix warn about switch case fallthrough

fallthrough is intended so add fallthrough markers to silence warning
This commit is contained in:
Carsten Haitzler 2018-11-06 17:23:54 +00:00
parent ea6edad4fb
commit e15c663c0a
1 changed files with 3 additions and 0 deletions

View File

@ -140,14 +140,17 @@ eina_hash_murmur3(const char *key, int len)
{ {
case 3: case 3:
k1 ^= tail[2] << 16; k1 ^= tail[2] << 16;
EINA_FALLTHROUGH;
case 2: case 2:
k1 ^= tail[1] << 8; k1 ^= tail[1] << 8;
EINA_FALLTHROUGH;
case 1: case 1:
k1 ^= tail[0]; k1 ^= tail[0];
k1 *= c1; k1 *= c1;
k1 = _rotl32(k1, 16); k1 = _rotl32(k1, 16);
k1 *= c2; k1 *= c2;
h1 ^= k1; h1 ^= k1;
EINA_FALLTHROUGH;
default: default:
break; break;
} }