diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-07-18 13:50:30 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-07-18 13:50:30 -0400 |
commit | a348c973b9618c178d64b3afd77063cf41583bf5 (patch) | |
tree | 4dbd206232d00528657fb612f14d4c3b52788278 | |
parent | 06d08009f6b67d0dc581e83766dffc81cd1cd902 (diff) |
Replace fallthrough comments with `ABSL_FALLTHROUGH_INTENDED`, allowing
clean building with -Wimplicit-fallthrough.
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBMigrations.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Firestore/Source/Local/FSTLevelDBMigrations.mm b/Firestore/Source/Local/FSTLevelDBMigrations.mm index bd72c97..b3ed935 100644 --- a/Firestore/Source/Local/FSTLevelDBMigrations.mm +++ b/Firestore/Source/Local/FSTLevelDBMigrations.mm @@ -23,6 +23,7 @@ #import "Firestore/Source/Local/FSTLevelDBQueryCache.h" #include "Firestore/core/src/firebase/firestore/util/hard_assert.h" +#include "absl/base/macros.h" #include "absl/strings/match.h" #include "leveldb/write_batch.h" @@ -108,11 +109,11 @@ static void AddTargetCount(LevelDbTransaction *transaction) { switch (currentVersion) { case 0: EnsureTargetGlobal(transaction); - // Fallthrough + ABSL_FALLTHROUGH_INTENDED; case 1: // We're now guaranteed that the target global exists. We can safely add a count to it. AddTargetCount(transaction); - // Fallthrough + ABSL_FALLTHROUGH_INTENDED; default: if (currentVersion < kSchemaVersion) { SaveVersion(kSchemaVersion, transaction); |