Skip to content

Commit

Permalink
more unused, but at least two still in facebook HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvon committed Jan 21, 2025
1 parent be0fb2f commit c1806df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion file/prefetch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ TEST_P(PrefetchTest, Basic) {
// count the keys
{
auto iter = std::unique_ptr<Iterator>(db_->NewIterator(ReadOptions()));
int num_keys = 0;
[[maybe_unused]] int num_keys = 0;
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
num_keys++;
}
Expand Down
2 changes: 1 addition & 1 deletion memtable/inlineskiplist_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class TestState {
static void ConcurrentReader(void* arg) {
TestState* state = reinterpret_cast<TestState*>(arg);
Random rnd(state->seed_);
int64_t reads = 0;
[[maybe_unused]] int64_t reads = 0;
state->Change(TestState::RUNNING);
while (!state->quit_flag_.load(std::memory_order_acquire)) {
state->t_.ReadStep(&rnd);
Expand Down
2 changes: 1 addition & 1 deletion memtable/skiplist_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class TestState {
static void ConcurrentReader(void* arg) {
TestState* state = reinterpret_cast<TestState*>(arg);
Random rnd(state->seed_);
int64_t reads = 0;
[[maybe_unused]] int64_t reads = 0;
state->Change(TestState::RUNNING);
while (!state->quit_flag_.load(std::memory_order_acquire)) {
state->t_.ReadStep(&rnd);
Expand Down

0 comments on commit c1806df

Please sign in to comment.