Use [[fallthrough]] in some switch statements

This commit is contained in:
seelabs
2019-08-07 13:44:56 -07:00
parent 70c2e1b419
commit 92925a0af6
6 changed files with 8 additions and 5 deletions

View File

@@ -215,7 +215,7 @@ invoke_calculateConsequences(STTx const& tx)
case ttTRUST_SET: return invoke_calculateConsequences<SetTrust>(tx);
case ttAMENDMENT:
case ttFEE:
// fall through to default
[[fallthrough]];
default:
assert(false);
return { TxConsequences::blocker, Transactor::calculateFeePaid(tx),