From b98b2c2f954db32d04020ad955ba3345fedc6116 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:59:15 -0400 Subject: [PATCH] silence interference-size warning --- libraries/chain/include/eosio/chain/thread_utils.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/chain/include/eosio/chain/thread_utils.hpp b/libraries/chain/include/eosio/chain/thread_utils.hpp index b4e4d5a673..1aba98fe8f 100644 --- a/libraries/chain/include/eosio/chain/thread_utils.hpp +++ b/libraries/chain/include/eosio/chain/thread_utils.hpp @@ -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 class large_atomic { @@ -49,6 +52,7 @@ namespace eosio { namespace chain { auto make_accessor() { return accessor{mtx, value}; } }; +#pragma GCC diagnostic pop template class copyable_atomic {