diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-13 21:23:17 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-07-05 08:59:38 +0300 |
commit | 014110c47d94ece6e3e655cdbf02ed8c91c7a5cf (patch) | |
tree | e8081ec6eb17c133d84b3457561021f5252e0807 /src/hash.cpp | |
parent | 7a49fdc58115845ece3a9890bf9498bee6b559de (diff) |
Use C++17 [[fallthrough]] attribute, and drop -Wno-implicit-fallthrough
Diffstat (limited to 'src/hash.cpp')
-rw-r--r-- | src/hash.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index cc46043c2b..3465caa3a9 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -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; |