-
Notifications
You must be signed in to change notification settings - Fork 771
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 warning #4693
Removed warning #4693
Conversation
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
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.
I would also change the order of the comparisons in line 149 to first check for valid, and then check the pid
if (!valid || (pid == PID_SENTINEL))
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@richiprosima Please test this |
It seems CI issues are unrelated to the PR. |
I should have labeled this as Thanks for this @ahcorde ! |
@Mergifyio backport 2.13.x 2.10.x 2.6.x |
✅ Backports have been created
|
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507)
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507)
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507)
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507) Co-authored-by: Alejandro Hernández Cordero <[email protected]>
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507) Co-authored-by: Alejandro Hernández Cordero <[email protected]>
* Removed warning Signed-off-by: Alejandro Hernández Cordero <[email protected]> * Added suggestions Signed-off-by: Alejandro Hernández Cordero <[email protected]> --------- Signed-off-by: Alejandro Hernández Cordero <[email protected]> (cherry picked from commit 8258507) Co-authored-by: Alejandro Hernández Cordero <[email protected]>
There is a new warning on CI https://ci.ros2.org/view/packaging/job/packaging_linux/3405/clang-tidy/folder.112366245/
This should fix the warning