mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Cleanup some compilation warnings with old gcc compiler.
This commit is contained in:
Vendored
+6
-6
@@ -2271,14 +2271,14 @@ private:
|
||||
}
|
||||
|
||||
// Reset all ctrl bytes back to kEmpty, except the sentinel.
|
||||
void reset_ctrl(size_t capacity) {
|
||||
std::memset(ctrl_, kEmpty, capacity + Group::kWidth);
|
||||
ctrl_[capacity] = kSentinel;
|
||||
SanitizerPoisonMemoryRegion(slots_, sizeof(slot_type) * capacity);
|
||||
void reset_ctrl(size_t new_capacity) {
|
||||
std::memset(ctrl_, kEmpty, new_capacity + Group::kWidth);
|
||||
ctrl_[new_capacity] = kSentinel;
|
||||
SanitizerPoisonMemoryRegion(slots_, sizeof(slot_type) * new_capacity);
|
||||
}
|
||||
|
||||
void reset_growth_left(size_t capacity) {
|
||||
growth_left() = CapacityToGrowth(capacity) - size_;
|
||||
void reset_growth_left(size_t new_capacity) {
|
||||
growth_left() = CapacityToGrowth(new_capacity) - size_;
|
||||
}
|
||||
|
||||
size_t& growth_left() { return std::get<0>(settings_); }
|
||||
|
||||
Reference in New Issue
Block a user