Skip to content

Removed clang warnings#2605

Merged
ahcorde merged 2 commits intorollingfrom
ahcorde/rolling/clang_warnings
Aug 22, 2024
Merged

Removed clang warnings#2605
ahcorde merged 2 commits intorollingfrom
ahcorde/rolling/clang_warnings

Conversation

@ahcorde
Copy link
Copy Markdown
Contributor

@ahcorde ahcorde commented Aug 20, 2024

Removed clang warnings related to this job https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/1986/gcc/folder.-1649941887/

Introduced in this PR #2598

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from clalancette August 20, 2024 09:59
@ahcorde ahcorde self-assigned this Aug 20, 2024
};

TYPED_TEST_SUITE(TestTimersLifecycle, ExecutorTypes);
TYPED_TEST_SUITE(TestTimersLifecycle, ExecutorTypes, );
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why this change? is it a typo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no, it's another clang warning

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we want to add ExecutorTypeNames instead?

Suggested change
TYPED_TEST_SUITE(TestTimersLifecycle, ExecutorTypes, );
TYPED_TEST_SUITE(TestTimersLifecycle, ExecutorTypes, ExecutorTypeNames);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's specifically for: https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/1986/gcc/folder.-1649941887/fileName.-411323968/

must specify at least one argument for '...' parameter of variadic macro [-Wgnu-zero-variadic-macro-arguments] 35 | TYPED_TEST_SUITE(TestTimersLifecycle, ExecutorTypes); | ^

adding a comma (and nothing afterwards) does not change the behaviour and satisfies clang.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I agree with @fujitatomoya , the correct approach is to pass ExecutorTypeNames there.

@alsora
Copy link
Copy Markdown
Collaborator

alsora commented Aug 21, 2024

@ahcorde it looks like the Rpr job is failing in the test that you modified.
It looks like the test gets run only for 2 of the 4 executors, and then it fails with:

-- run_test.py: return code -11

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Aug 21, 2024

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

@ahcorde ahcorde merged commit b7c7893 into rolling Aug 22, 2024
@ahcorde ahcorde deleted the ahcorde/rolling/clang_warnings branch August 22, 2024 06:45
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