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

Check the rcl_action return value on cleanup. #672

Merged
merged 4 commits into from Feb 3, 2021

Conversation

clalancette
Copy link
Contributor

And add an error message as appropriate. clang static
analysis pointed out that this was a dead store.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

@clalancette
Copy link
Contributor Author

clalancette commented Jan 26, 2021

CI:

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

@clalancette clalancette force-pushed the clalancette/check-rcl-action-retval branch from 0b305b9 to 7d44a99 Compare January 30, 2021 18:06
And add an error message as appropriate.  clang static
analysis pointed out that this was a dead store.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
As sloretz pointed out, the pointer we were keeping to the
original error would get overwritten with the next error,
so we really need a copy.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette force-pushed the clalancette/check-rcl-action-retval branch from 7d44a99 to f3e340a Compare February 1, 2021 18:57
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Copy link
Member

@wjwwood wjwwood 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 one apparently vestigial include.

rclpy/src/rclpy/_rclpy_action.c Outdated Show resolved Hide resolved
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

CI:

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

@clalancette
Copy link
Contributor Author

All of the test failures are in the nightlies and don't have to do with this PR. Merging, thanks for the reviews.

@clalancette clalancette merged commit 812ea50 into master Feb 3, 2021
@clalancette clalancette deleted the clalancette/check-rcl-action-retval branch February 3, 2021 17:03
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

4 participants