Commit a17eb0e4 authored by Dominik Charousset's avatar Dominik Charousset

Silence warning on GCC

parent ec01dc81
...@@ -82,7 +82,7 @@ private: ...@@ -82,7 +82,7 @@ private:
data& operator=(const data&) = delete; data& operator=(const data&) = delete;
explicit data(bool bin, size_t size) : rc_(1), bin_(bin), size_(size) { explicit data(bool bin, size_t size) : rc_(1), bin_(bin), size_(size) {
// nop static_cast<void>(padding_); // Silence unused-private-field warning.
} }
// -- reference counting --------------------------------------------------- // -- reference counting ---------------------------------------------------
...@@ -127,7 +127,7 @@ private: ...@@ -127,7 +127,7 @@ private:
static constexpr size_t padding_size = CAF_CACHE_LINE_SIZE static constexpr size_t padding_size = CAF_CACHE_LINE_SIZE
- sizeof(std::atomic<size_t>); - sizeof(std::atomic<size_t>);
mutable std::atomic<size_t> rc_; mutable std::atomic<size_t> rc_;
[[maybe_unused]] std::byte padding_[padding_size]; std::byte padding_[padding_size];
bool bin_; bool bin_;
size_t size_; size_t size_;
std::byte storage_[]; std::byte storage_[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment