diff --git a/src/hash.cpp b/src/hash.cpp --- a/src/hash.cpp +++ b/src/hash.cpp @@ -47,8 +47,10 @@ 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; diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -269,6 +269,7 @@ state = STATE_EATING_SPACES; } if (breakParsing) break; + // FALLTHROUGH } case STATE_ARGUMENT: // In or after argument case STATE_EATING_SPACES_IN_ARG: @@ -403,6 +404,7 @@ strResult = lastResult.get_str(); else strResult = lastResult.write(2); + // FALLTHROUGH case STATE_ARGUMENT: case STATE_EATING_SPACES: return true; diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -467,6 +467,7 @@ std::vector strRequestV = ParseHex(strRequestMutable); strRequestMutable.assign(strRequestV.begin(), strRequestV.end()); + // FALLTHROUGH } case RF_BINARY: { diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -708,7 +708,7 @@ case THRESHOLD_LOCKED_IN: // Ensure bit is set in block version pblock->nVersion |= VersionBitsMask(consensusParams, pos); - // FALL THROUGH to get vbavailable set... + // FALLTHROUGH to get vbavailable set... case THRESHOLD_STARTED: { const struct BIP9DeploymentInfo &vbinfo = VersionBitsDeploymentInfo[pos]; diff --git a/src/tinyformat.h b/src/tinyformat.h --- a/src/tinyformat.h +++ b/src/tinyformat.h @@ -742,6 +742,7 @@ break; case 'X': out.setf(std::ios::uppercase); + // FALLTHROUGH case 'x': case 'p': out.setf(std::ios::hex, std::ios::basefield); @@ -749,17 +750,20 @@ break; case 'E': out.setf(std::ios::uppercase); + // FALLTHROUGH case 'e': out.setf(std::ios::scientific, std::ios::floatfield); out.setf(std::ios::dec, std::ios::basefield); break; case 'F': out.setf(std::ios::uppercase); + // FALLTHROUGH case 'f': out.setf(std::ios::fixed, std::ios::floatfield); break; case 'G': out.setf(std::ios::uppercase); + // FALLTHROUGH case 'g': out.setf(std::ios::dec, std::ios::basefield); // As in boost::format, let stream decide float format.