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

Removed warnings #1794

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Removed warnings #1794

merged 3 commits into from
Aug 28, 2024

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Aug 27, 2024

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde ahcorde self-assigned this Aug 27, 2024
@ahcorde ahcorde requested a review from a team as a code owner August 27, 2024 15:59
@ahcorde ahcorde requested review from MichaelOrlov and hidmic and removed request for a team August 27, 2024 15:59
@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 27, 2024

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

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Arg. We can't do this because this won't compile on MSVC; see #1792 (review) .

I think the best we can do here is switch the expected_messages back to just a const size_t, and then keep the captures. I think that should make both Windows and Clang happy.

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

Just idea, how about adding static to share the expected_messages compiled ROM data in the function to remove the capture?

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 28, 2024

@clalancette and @fujitatomoya what about this solution ? I used a similar approach in other similar cases like this one https://github.com/ros2/geometry2/pull/682/files

@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 28, 2024

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

Copy link
Contributor

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI

@clalancette
Copy link
Contributor

Here's also a Clang run to ensure that this fixes it on Clang:

  • Clang Build Status

@clalancette clalancette merged commit 88c51a1 into rolling Aug 28, 2024
12 checks passed
@clalancette clalancette deleted the ahcorde/rolling/remove_warnings branch August 28, 2024 18:29
@MichaelOrlov
Copy link
Contributor

https://github.com/Mergifyio backport jazzy

Copy link

mergify bot commented Sep 17, 2024

backport jazzy

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 17, 2024
* Removed warnings

* compile with windows

* make linters happy

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 88c51a1)
MichaelOrlov pushed a commit that referenced this pull request Sep 18, 2024
* Removed warnings

* compile with windows

* make linters happy

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
(cherry picked from commit 88c51a1)

Co-authored-by: Alejandro Hernández Cordero <[email protected]>
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.

4 participants