From 16ede4bcaff474bba3f514bafc8d4a46390c2bdb Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Sun, 24 Sep 2023 14:21:30 -0400 Subject: [PATCH] remove usage of deprecated ATOMIC_VAR_INIT --- include/eosio/vm/profile.hpp | 2 +- include/eosio/vm/signals.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/eosio/vm/profile.hpp b/include/eosio/vm/profile.hpp index dc83b0e4..92676d36 100644 --- a/include/eosio/vm/profile.hpp +++ b/include/eosio/vm/profile.hpp @@ -341,7 +341,7 @@ struct scoped_profile { #else __attribute__((visibility("default"))) -inline thread_local std::atomic per_thread_profile_data = ATOMIC_VAR_INIT(nullptr); +inline thread_local std::atomic per_thread_profile_data{nullptr}; inline void profile_handler(int sig, siginfo_t* info, void* uc) { static_assert(std::atomic::is_always_lock_free); diff --git a/include/eosio/vm/signals.hpp b/include/eosio/vm/signals.hpp index 3de07498..05bbdab8 100644 --- a/include/eosio/vm/signals.hpp +++ b/include/eosio/vm/signals.hpp @@ -14,7 +14,7 @@ namespace eosio { namespace vm { // Fixes a duplicate symbol build issue when building with `-fvisibility=hidden` __attribute__((visibility("default"))) - inline thread_local std::atomic signal_dest = ATOMIC_VAR_INIT(nullptr); + inline thread_local std::atomic signal_dest{nullptr}; // Fixes a duplicate symbol build issue when building with `-fvisibility=hidden` __attribute__((visibility("default")))