diff options
| author | Dentomologist <dentomologist@gmail.com> | 2026-08-08 01:21:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-08 01:21:25 -0700 |
| commit | f42c349c3210eeb8f14d0b997a6c0cfc9f2f0ef5 (patch) | |
| tree | 74b98d1a945453326e5941a3b0102f1f02218418 /Source/Core/Common/Hash.cpp | |
| parent | 430138f468effe6bf396adf3cd4d46df4cbd9050 (diff) | |
| parent | 94eceb35e8f263a167d9b2cce9ed901903c913ce (diff) | |
Merge pull request #14802 from phire/fallthrough_warnings
Enable Fallthrough warnings
Diffstat (limited to 'Source/Core/Common/Hash.cpp')
| -rw-r--r-- | Source/Core/Common/Hash.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp index 3756bdcad4..f5b9da1b20 100644 --- a/Source/Core/Common/Hash.cpp +++ b/Source/Core/Common/Hash.cpp @@ -136,33 +136,46 @@ static u64 GetMurmurHash3(const u8* src, u32 len, u32 samples) { case 15: k2 ^= u64(tail[14]) << 48; + [[fallthrough]]; case 14: k2 ^= u64(tail[13]) << 40; + [[fallthrough]]; case 13: k2 ^= u64(tail[12]) << 32; + [[fallthrough]]; case 12: k2 ^= u64(tail[11]) << 24; + [[fallthrough]]; case 11: k2 ^= u64(tail[10]) << 16; + [[fallthrough]]; case 10: k2 ^= u64(tail[9]) << 8; + [[fallthrough]]; case 9: k2 ^= u64(tail[8]) << 0; - + [[fallthrough]]; case 8: k1 ^= u64(tail[7]) << 56; + [[fallthrough]]; case 7: k1 ^= u64(tail[6]) << 48; + [[fallthrough]]; case 6: k1 ^= u64(tail[5]) << 40; + [[fallthrough]]; case 5: k1 ^= u64(tail[4]) << 32; + [[fallthrough]]; case 4: k1 ^= u64(tail[3]) << 24; + [[fallthrough]]; case 3: k1 ^= u64(tail[2]) << 16; + [[fallthrough]]; case 2: k1 ^= u64(tail[1]) << 8; + [[fallthrough]]; case 1: k1 ^= u64(tail[0]) << 0; bmix64(h1, h2, k1, k2, c1, c2); |
