summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorChris Mumford <cmumford@google.com>2019-10-02 09:35:37 -0700
committerChris Mumford <cmumford@chromium.org>2019-10-28 13:23:53 -0700
commit657ba514298a726c7533f3106d3778062b59d75f (patch)
treef7a5f30ffd98f4d43d49eb4d2105e59829c81cf8 /db
parent370d532a00581ca79c87af7d7811e56de0ca52a8 (diff)
downloadleveldb-657ba514298a726c7533f3106d3778062b59d75f.tar.gz
Added return in Version::Get::State::Match to quiet warning.
Added unreached return at the end of Version::Get::State::Match to stop this _incorrect_ warning: version_set.cc:376:5: warning: control reaches end of non-void function [-Wreturn-type] This warning was being emitted when building with clang 6.0.1-10 and also emitted by lgtm.com when statically analyzing leveldb even though all SaverState enumeration values were handled. PiperOrigin-RevId: 272455474
Diffstat (limited to 'db')
-rw-r--r--db/version_set.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/version_set.cc b/db/version_set.cc
index fd5e3ab..cd07346 100644
--- a/db/version_set.cc
+++ b/db/version_set.cc
@@ -373,6 +373,10 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k,
state->found = true;
return false;
}
+
+ // Not reached. Added to avoid false compilation warnings of
+ // "control reaches end of non-void function".
+ return false;
}
};