mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
lmdb: fix gcc 7.3.0 'implicit-fallthrough' warning
This commit is contained in:
parent
d0c4123034
commit
fc99f177f3
@ -4358,16 +4358,12 @@ void BlockchainLMDB::migrate_2_3()
|
||||
|
||||
void BlockchainLMDB::migrate(const uint32_t oldversion)
|
||||
{
|
||||
switch(oldversion) {
|
||||
case 0:
|
||||
migrate_0_1(); /* FALLTHRU */
|
||||
case 1:
|
||||
migrate_1_2(); /* FALLTHRU */
|
||||
case 2:
|
||||
migrate_2_3(); /* FALLTHRU */
|
||||
default:
|
||||
;
|
||||
}
|
||||
if (oldversion < 1)
|
||||
migrate_0_1();
|
||||
if (oldversion < 2)
|
||||
migrate_1_2();
|
||||
if (oldversion < 3)
|
||||
migrate_2_3();
|
||||
}
|
||||
|
||||
} // namespace cryptonote
|
||||
|
Loading…
Reference in New Issue
Block a user