Skip to content

Commit

Permalink
fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
theartful committed Mar 29, 2024
1 parent a8a446f commit 726eb52
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bitmap_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
namespace broadcast_queue {

static inline int ctz_fallback(uint64_t x) {
int count = 0;
while ((x & 1) == 0) {
++count;
x >>= 1;
}
int count = 0;
while ((x & 1) == 0) {
++count;
x >>= 1;
}

return count;
return count;
}

// count trailing zeros from the least significant bit
Expand Down Expand Up @@ -386,8 +386,8 @@ template <typename T> class null_allocator {
template <typename U> null_allocator(const null_allocator<U> &) {}
template <typename U> null_allocator(null_allocator<U> &&) {}

pointer allocate(size_type n) { return nullptr; }
void deallocate(pointer p, size_type n) {}
pointer allocate(size_type) { return nullptr; }
void deallocate(pointer, size_type) {}
};

} // namespace broadcast_queue
Expand Down

0 comments on commit 726eb52

Please sign in to comment.