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

Suppress clang warning "ATOMIC_FLAG_INIT marked deprecated" #1502

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

tolk-vm
Copy link
Contributor

@tolk-vm tolk-vm commented Jan 27, 2025

In C++20, macro ATOMIC_FLAG_INIT has been marked as deprecated. We need still to use it to be able to compile for C++17 (its absence is not the fix, this behavior changed in C++20 only).
Since it's present in a header file, it produces lots of warnings throughout all compilation process (for clang under mac and in wasm compilation).
For now, just suppress this warning for clang.

In C++20, macro 'ATOMIC_FLAG_INIT' has been marked as deprecated.
We need still to use it to be able to compile for C++17.
For now, just suppress this warning.
@EmelyanenkoK EmelyanenkoK merged commit b1c9466 into testnet Jan 27, 2025
16 of 17 checks passed
@tolk-vm tolk-vm deleted the suppress-cpp20-atomic-warning branch January 27, 2025 19:28
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.

2 participants