Suppress fallthrough warnings

This commit is contained in:
Seth Hillbrand 2024-06-25 12:18:44 -07:00
parent 6aaaaad37f
commit 3c88b1ebc7
1 changed files with 14 additions and 13 deletions

View File

@ -127,22 +127,23 @@ private:
switch( len & 15)
{
case 15: k2 ^= ((uint64_t)tail[14]) << 48;
case 14: k2 ^= ((uint64_t)tail[13]) << 40;
case 13: k2 ^= ((uint64_t)tail[12]) << 32;
case 12: k2 ^= ((uint64_t)tail[11]) << 24;
case 11: k2 ^= ((uint64_t)tail[10]) << 16;
case 10: k2 ^= ((uint64_t)tail[ 9]) << 8;
case 15: k2 ^= ((uint64_t)tail[14]) << 48; [[fallthrough]];
case 14: k2 ^= ((uint64_t)tail[13]) << 40; [[fallthrough]];
case 13: k2 ^= ((uint64_t)tail[12]) << 32; [[fallthrough]];
case 12: k2 ^= ((uint64_t)tail[11]) << 24; [[fallthrough]];
case 11: k2 ^= ((uint64_t)tail[10]) << 16; [[fallthrough]];
case 10: k2 ^= ((uint64_t)tail[ 9]) << 8; [[fallthrough]];
case 9: k2 ^= ((uint64_t)tail[ 8]) << 0;
k2 *= c2; k2 = ROTL64(k2,33); k2 *= c1; h2 ^= k2;
[[fallthrough]];
case 8: k1 ^= ((uint64_t)tail[ 7]) << 56;
case 7: k1 ^= ((uint64_t)tail[ 6]) << 48;
case 6: k1 ^= ((uint64_t)tail[ 5]) << 40;
case 5: k1 ^= ((uint64_t)tail[ 4]) << 32;
case 4: k1 ^= ((uint64_t)tail[ 3]) << 24;
case 3: k1 ^= ((uint64_t)tail[ 2]) << 16;
case 2: k1 ^= ((uint64_t)tail[ 1]) << 8;
case 8: k1 ^= ((uint64_t)tail[ 7]) << 56; [[fallthrough]];
case 7: k1 ^= ((uint64_t)tail[ 6]) << 48; [[fallthrough]];
case 6: k1 ^= ((uint64_t)tail[ 5]) << 40; [[fallthrough]];
case 5: k1 ^= ((uint64_t)tail[ 4]) << 32; [[fallthrough]];
case 4: k1 ^= ((uint64_t)tail[ 3]) << 24; [[fallthrough]];
case 3: k1 ^= ((uint64_t)tail[ 2]) << 16; [[fallthrough]];
case 2: k1 ^= ((uint64_t)tail[ 1]) << 8; [[fallthrough]];
case 1: k1 ^= ((uint64_t)tail[ 0]) << 0;
k1 *= c1; k1 = ROTL64(k1,31); k1 *= c2; h1 ^= k1;
};