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

Update usage of deprecated ATOMIC_VAR_INIT #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edgchen1
Copy link

ATOMIC_VAR_INIT is deprecated in C++20.

From here:

This macro is primarily provided for compatibility with C; it behaves the same as the constructor of std::atomic.

This change replaces it with a call to the std::atomic<uint32_t> constructor via brace initialization.

More context:
I'm working on a project that includes nsync headers and I'm seeing deprecation warnings from this ATOMIC_VAR_INIT usage after updating my compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant