mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
lmdb: fix gcc 7.3.0 'implicit-fallthrough' warning
This commit is contained in:
parent
d0c4123034
commit
fc99f177f3
1 changed files with 6 additions and 10 deletions
|
@ -4358,16 +4358,12 @@ void BlockchainLMDB::migrate_2_3()
|
||||||
|
|
||||||
void BlockchainLMDB::migrate(const uint32_t oldversion)
|
void BlockchainLMDB::migrate(const uint32_t oldversion)
|
||||||
{
|
{
|
||||||
switch(oldversion) {
|
if (oldversion < 1)
|
||||||
case 0:
|
migrate_0_1();
|
||||||
migrate_0_1(); /* FALLTHRU */
|
if (oldversion < 2)
|
||||||
case 1:
|
migrate_1_2();
|
||||||
migrate_1_2(); /* FALLTHRU */
|
if (oldversion < 3)
|
||||||
case 2:
|
migrate_2_3();
|
||||||
migrate_2_3(); /* FALLTHRU */
|
|
||||||
default:
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cryptonote
|
} // namespace cryptonote
|
||||||
|
|
Loading…
Reference in a new issue