Skip to content

Commit

Permalink
fix compiler warnings that block build on mac. used same syntax as Fa…
Browse files Browse the repository at this point in the history
…cebook did in later versions
  • Loading branch information
matthewvon committed Dec 4, 2024
1 parent 8e0f495 commit e6a62a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache/fast_lru_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void LRUHandleTable::Resize() {
std::unique_ptr<LRUHandle* []> new_list {
new LRUHandle* [size_t{1} << new_length_bits] {}
};
uint32_t count = 0;
[[maybe_unused]]uint32_t count = 0;
for (uint32_t i = 0; i < old_length; i++) {
LRUHandle* h = list_[i];
while (h != nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion cache/lru_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void LRUHandleTable::Resize() {
std::unique_ptr<LRUHandle* []> new_list {
new LRUHandle* [size_t{1} << new_length_bits] {}
};
uint32_t count = 0;
[[maybe_unused]] uint32_t count = 0;
for (uint32_t i = 0; i < old_length; i++) {
LRUHandle* h = list_[i];
while (h != nullptr) {
Expand Down
1 change: 1 addition & 0 deletions util/cleanable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <atomic>
#include <cassert>
#include <utility>

namespace ROCKSDB_NAMESPACE {

Expand Down

0 comments on commit e6a62a7

Please sign in to comment.