Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove usage of deprecated ATOMIC_VAR_INIT #21

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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