-
Notifications
You must be signed in to change notification settings - Fork 101
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
avoid unnecessary copy for rcutils_char_array_vsprintf. #412
avoid unnecessary copy for rcutils_char_array_vsprintf. #412
Conversation
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@clalancette minor improvement, can you review on this? |
CC: @iuhilnehc-ynos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As rcutils_char_array_vsprintf
might call _rcutils_char_array_vsprintf
twice, it seems necessary to use va_copy
in _rcutils_char_array_vsprintf
. This PR makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BUILD args: --packages-above-and-dependencies rcutils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment in ros2/rcl#1035 (review) for why I don't think this is safe to do.
https://ci.ros2.org/job/ci_linux/18129/testReport/ is known flaky addressed by ros2/ros2cli#809 |
@Mergifyio backport humble |
✅ Backports have been created
|
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com> (cherry picked from commit 1db1f16)
address #409