Skip to content

Commit

Permalink
Merge pull request #21 from AntelopeIO/ATOMIC_VAR_INIT_bgone
Browse files Browse the repository at this point in the history
remove usage of deprecated `ATOMIC_VAR_INIT`
  • Loading branch information
spoonincode authored Sep 24, 2023
2 parents b06ac3d + 16ede4b commit 33e91eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/eosio/vm/profile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ struct scoped_profile {
#else

__attribute__((visibility("default")))
inline thread_local std::atomic<profile_data*> per_thread_profile_data = ATOMIC_VAR_INIT(nullptr);
inline thread_local std::atomic<profile_data*> per_thread_profile_data{nullptr};

inline void profile_handler(int sig, siginfo_t* info, void* uc) {
static_assert(std::atomic<profile_data*>::is_always_lock_free);
Expand Down
2 changes: 1 addition & 1 deletion include/eosio/vm/signals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<sigjmp_buf*> signal_dest = ATOMIC_VAR_INIT(nullptr);
inline thread_local std::atomic<sigjmp_buf*> signal_dest{nullptr};

// Fixes a duplicate symbol build issue when building with `-fvisibility=hidden`
__attribute__((visibility("default")))
Expand Down

0 comments on commit 33e91eb

Please sign in to comment.