diff --git a/.gitignore b/.gitignore index 1ff5b7437..9b4ac1591 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,4 @@ fuzz/crash-* cmake-build-* third-party/folly/ +.cache \ No newline at end of file diff --git a/db/compaction/compaction_job_test.cc b/db/compaction/compaction_job_test.cc index 79f8e5fd5..3f7966404 100644 --- a/db/compaction/compaction_job_test.cc +++ b/db/compaction/compaction_job_test.cc @@ -373,7 +373,7 @@ class CompactionJobTestBase : public testing::Test { } else if (table_type_ == TableTypeForTest::kMockTable) { file_size = 10; EXPECT_OK(mock_table_factory_->CreateMockTable( - env_, GenerateFileName(file_number), std::move(contents))); + env_, GenerateFileName(file_number), contents)); } else { assert(false); } diff --git a/db/db_test.cc b/db/db_test.cc index 7720cbbe4..1b01422a9 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -3460,6 +3460,7 @@ static bool CompareIterators(int step, DB* model, DB* db, ok = false; } } + (void)count; delete miter; delete dbiter; return ok; diff --git a/file/prefetch_test.cc b/file/prefetch_test.cc index 488e037ff..fb3114449 100644 --- a/file/prefetch_test.cc +++ b/file/prefetch_test.cc @@ -220,6 +220,7 @@ TEST_P(PrefetchTest, Basic) { for (iter->SeekToFirst(); iter->Valid(); iter->Next()) { num_keys++; } + (void)num_keys; } // Make sure prefetch is called only if file system support prefetch. @@ -1803,6 +1804,7 @@ TEST_P(PrefetchTest, MultipleSeekWithPosixFS) { } MoveFilesToLevel(2); } + (void)total_keys; int num_keys_first_batch = 0; int num_keys_second_batch = 0; diff --git a/memtable/inlineskiplist_test.cc b/memtable/inlineskiplist_test.cc index f85644064..930574ec7 100644 --- a/memtable/inlineskiplist_test.cc +++ b/memtable/inlineskiplist_test.cc @@ -576,6 +576,7 @@ static void ConcurrentReader(void* arg) { state->t_.ReadStep(&rnd); ++reads; } + (void)reads; state->Change(TestState::DONE); } diff --git a/memtable/skiplist_test.cc b/memtable/skiplist_test.cc index a07088511..868c51876 100644 --- a/memtable/skiplist_test.cc +++ b/memtable/skiplist_test.cc @@ -348,6 +348,7 @@ static void ConcurrentReader(void* arg) { state->t_.ReadStep(&rnd); ++reads; } + (void)reads; state->Change(TestState::DONE); } diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index ea40f5fa0..19ca1b4c0 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -6984,6 +6984,8 @@ class Benchmark { thread->stats.FinishedOps(&db_, db_.db, 1, kSeek); } + (void)num_seek_to_first; + (void)num_next; delete iter; }