Use C++17 [[fallthrough]] attribute, and drop -Wno-implicit-fallthrough

This commit is contained in:
Hennadii Stepanov
2021-03-13 21:23:17 +02:00
parent 7a49fdc581
commit 014110c47d
7 changed files with 13 additions and 7 deletions

View File

@@ -47,8 +47,10 @@ unsigned int MurmurHash3(unsigned int nHashSeed, Span<const unsigned char> vData
switch (vDataToHash.size() & 3) {
case 3:
k1 ^= tail[2] << 16;
[[fallthrough]];
case 2:
k1 ^= tail[1] << 8;
[[fallthrough]];
case 1:
k1 ^= tail[0];
k1 *= c1;