Skip to content

Conversation

@devreal
Copy link
Contributor

@devreal devreal commented Dec 8, 2023

Ensure const-correctness of the compare_addr argument to atomic CAS.

Fixes #12130

Ensure const-correctness of the compare_addr argument to atomic CAS.

Signed-off-by: Joseph Schuchart <[email protected]>
Copy link
Contributor

@janjust janjust left a comment

Choose a reason for hiding this comment

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

@devreal can you cherry pick to v5.0.x?

@devreal
Copy link
Contributor Author

devreal commented Dec 8, 2023

Done: #12155

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

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

Looks like a creative way to cast away the const. If that's all this is, cool -- glad it's not a larger issue (I wasn't sure, which is why I filed #12130). I confirm that this fix does, indeed, remove the compiler warnings. Thanks @devreal!

@devreal devreal merged commit ab4cd38 into open-mpi:main Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concerning warnings in OSC rdma

3 participants