diff options
author | John Abd-El-Malek <john.abdelmalek@gmail.com> | 2016-04-15 10:58:27 -0700 |
---|---|---|
committer | Chris Mumford <cmumford@cmumford.com> | 2016-04-15 10:58:27 -0700 |
commit | a7bff697baa062c8f6b8fb760eacf658712b611a (patch) | |
tree | 68c489f9ec4b6969dc1e474f907a48ce8ed3413d /table | |
parent | ea992b467b9f3c892ae87267ba908e97d532b1b2 (diff) | |
download | leveldb-a7bff697baa062c8f6b8fb760eacf658712b611a.tar.gz |
Fix LevelDB build when asserts are enabled in release builds. (#367)
* Fix LevelDB build when asserts are enabled in release builds.
BUG=https://bugs.chromium.org/p/chromium/issues/detail?id=603166
* fix
* Add comment
Diffstat (limited to 'table')
-rw-r--r-- | table/format.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/table/format.cc b/table/format.cc index aa63144..24e4e02 100644 --- a/table/format.cc +++ b/table/format.cc @@ -30,15 +30,14 @@ Status BlockHandle::DecodeFrom(Slice* input) { } void Footer::EncodeTo(std::string* dst) const { -#ifndef NDEBUG const size_t original_size = dst->size(); -#endif metaindex_handle_.EncodeTo(dst); index_handle_.EncodeTo(dst); dst->resize(2 * BlockHandle::kMaxEncodedLength); // Padding PutFixed32(dst, static_cast<uint32_t>(kTableMagicNumber & 0xffffffffu)); PutFixed32(dst, static_cast<uint32_t>(kTableMagicNumber >> 32)); assert(dst->size() == original_size + kEncodedLength); + (void)original_size; // Disable unused variable warning. } Status Footer::DecodeFrom(Slice* input) { |