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

This commit is contained in:
Hennadii Stepanov committed 2021-07-05 08:59:38 +03:00
1 parent 7a49fdc581
commit 014110c47d
7 files changed
+13 -7

No files matched your search

+2
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;