Skip to content

[eloquent backport] Warn about unused result of add_on_set_parameters_callback (#1238)#1243

Merged
jacobperron merged 1 commit intoeloquentfrom
jacob/eloquent_backport_1238
Dec 2, 2020
Merged

[eloquent backport] Warn about unused result of add_on_set_parameters_callback (#1238)#1243
jacobperron merged 1 commit intoeloquentfrom
jacob/eloquent_backport_1238

Conversation

@jacobperron
Copy link
Copy Markdown
Member

@jacobperron jacobperron commented Jul 28, 2020

Backport #1238 to Eloquent.

If the user doesn't retain a reference to the returned shared pointer there will be zero references and their callback will be unregistered.

If the user doesn't retain a reference to the returned shared pointer there will be zero references and their callback will be unregistered.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron changed the title Warn about unused result of add_on_set_parameters_callback (#1238) [eloquent backport] Warn about unused result of add_on_set_parameters_callback (#1238) Jul 28, 2020
@jacobperron jacobperron self-assigned this Jul 28, 2020
@jacobperron
Copy link
Copy Markdown
Member Author

The ABI checker is failing, but I'm pretty sure it is unrelated to the changes in this PR.

@ivanpauno
Copy link
Copy Markdown
Member

The ABI checker is failing, but I'm pretty sure it is unrelated to the changes in this PR.

Yeah, that isn't related.
This could be mentioned in the release notes, as it may generate a warn in places where it didn't (which is good, because it's an actual bug in this case).

jacobperron added a commit to ros2/ros2_documentation that referenced this pull request Dec 1, 2020
Relates to ros2/rclcpp#1243.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Copy Markdown
Member Author

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

@jacobperron
Copy link
Copy Markdown
Member Author

@ivanpauno I've added a note to the Eloquent release page ros2/ros2_documentation#933

cc/ @mjcarroll

@jacobperron jacobperron merged commit 1e8e642 into eloquent Dec 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the jacob/eloquent_backport_1238 branch December 2, 2020 18:29
jacobperron added a commit to ros2/ros2_documentation that referenced this pull request Dec 2, 2020
Relates to ros2/rclcpp#1243.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
ferranm99 added a commit to ferranm99/ferran-ros that referenced this pull request May 20, 2022
Relates to ros2/rclcpp#1243.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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.

3 participants