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

UT[MWC]: C++20: Fix -Wvolatile warnings #378

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

hallfox
Copy link
Collaborator

@hallfox hallfox commented Jul 26, 2024

C++20 has completely deprecated volatile, and GCC enables multiple warnings to catch invalid volatile uses.

@hallfox hallfox requested a review from a team as a code owner July 26, 2024 21:14
@hallfox hallfox force-pushed the fix-volatile-warning branch from 07cdbd8 to 2a729af Compare July 26, 2024 21:15
C++20 has completely deprecated `volatile`, and GCC enables multiple
warnings to catch invalid volatile uses.

Signed-off-by: Taylor Foxhall <tfoxhall@bloomberg.net>
@hallfox hallfox force-pushed the fix-volatile-warning branch from 2a729af to 9a10c65 Compare July 26, 2024 21:17
Copy link
Collaborator

@pniedzielski pniedzielski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻 👏🏻 👏🏻

(nit: only deprecated in the places it's broken, like thread-safety, not in places it has no replacement, like hardware register access: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1152r4.html and previous versions)

@hallfox hallfox merged commit f99b265 into bloomberg:main Jul 29, 2024
29 checks passed
@hallfox hallfox deleted the fix-volatile-warning branch July 29, 2024 19:08
@678098 678098 changed the title C++20: Fix -Wvolatile warnings UT[MWC]: C++20: Fix -Wvolatile warnings Aug 29, 2024
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