Conversation
| PublicationServer::operator void*() const | ||
| { | ||
| return (impl_ && impl_->isValid()) ? (void*)1 : (void*)0; | ||
| return (impl_ && impl_->isValid()) ? reinterpret_cast<void*>(1) : reinterpret_cast<void*>(0); |
There was a problem hiding this comment.
Orthogonal to resolving the linter complaint, does anyone have an idea as to why we would want to return a bogus pointer here in case the implementation is valid?
There was a problem hiding this comment.
That looks like a recipe for segfaults, to me. It must be being treated as an error code of some kind, I guess?
There was a problem hiding this comment.
Since this package hasn't been ported to ROS 2, I've dropped changes to it in this PR.
|
I realized I applied linter fixes to files in the |
If it's not ported to ROS 2 and is not being built, then I think it's OK to skip the ROS 2 lint fixes. |
Relates to ament/ament_lint#324 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
da4de90 to
121f6ed
Compare
|
I've dropped all changes to the |
Relates to ament/ament_lint#324