Skip to content

Commit

Permalink
silence interference-size warning
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Apr 16, 2024
1 parent bfbdcca commit b98b2c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/chain/include/eosio/chain/thread_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ namespace eosio { namespace chain {
[[maybe_unused]] constexpr std::size_t hardware_destructive_interference_size = 64;
#endif

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Winterference-size"
// Use instead of std::atomic when std::atomic does not support type
template <typename T>
class large_atomic {
Expand Down Expand Up @@ -49,6 +52,7 @@ namespace eosio { namespace chain {

auto make_accessor() { return accessor{mtx, value}; }
};
#pragma GCC diagnostic pop

template <typename T>
class copyable_atomic {
Expand Down

0 comments on commit b98b2c2

Please sign in to comment.