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

Fixed C++20 warning that ‘++’ expression of ‘volatile’-qualified type is deprecated #102

Merged
merged 1 commit into from Sep 11, 2023

Conversation

AiVerisimilitude
Copy link

I'm not sure what the intention here with this specific volatile use is, but I assume it was to account for a multithreaded environment?

If so, I replace the volatile with std::atomic which is better suited in this PR. Otherwise, I can just remove the volatile qualifier.

@quarkytale
Copy link
Contributor

It doesn't seem volatile is helping with multithreading, as two separate threads could be calling autoComplete at the same time and corrupt id. So just setting it static preserves the functionality. Thanks!

@quarkytale
Copy link
Contributor

quarkytale commented Sep 6, 2023

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

… is deprecated

Signed-off-by: Guilherme Rodrigues <guilherme.rodrigues@ait.ac.at>
@AiVerisimilitude
Copy link
Author

Alright. Then I've kept it simple :)

Thanks for the review!

@quarkytale
Copy link
Contributor

Correct CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@quarkytale
Copy link
Contributor

Finally with correct repos

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@quarkytale quarkytale merged commit 9979278 into ros-visualization:rolling Sep 11, 2023
2 checks passed
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.

None yet

2 participants