mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Use C++17 [[fallthrough]] attribute, and drop -Wno-implicit-fallthrough
This commit is contained in:
parent
7a49fdc581
commit
014110c47d
7 changed files with 13 additions and 7 deletions
|
|
@ -850,7 +850,7 @@ static RPCHelpMan getblocktemplate()
|
|||
case ThresholdState::LOCKED_IN:
|
||||
// Ensure bit is set in block version
|
||||
pblock->nVersion |= g_versionbitscache.Mask(consensusParams, pos);
|
||||
// FALL THROUGH to get vbavailable set...
|
||||
[[fallthrough]];
|
||||
case ThresholdState::STARTED:
|
||||
{
|
||||
const struct VBDeploymentInfo& vbinfo = VersionBitsDeploymentInfo[pos];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue