From a348c973b9618c178d64b3afd77063cf41583bf5 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 18 Jul 2018 13:50:30 -0400 Subject: Eliminate -Wimplicit-fallthrough triggers Replace fallthrough comments with `ABSL_FALLTHROUGH_INTENDED`, allowing clean building with -Wimplicit-fallthrough. --- Firestore/Source/Local/FSTLevelDBMigrations.mm | 5 +++-- 1 file 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); -- cgit v1.2.3