Merge pull request #4872

fc99f177 lmdb: fix gcc 7.3.0 'implicit-fallthrough' warning (xiphon)
This commit is contained in:
Riccardo Spagni 2018-12-04 17:13:20 +02:00
commit a605c0da08
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -4369,16 +4369,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