Skip to content

Commit

Permalink
Removed warning (#312)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored May 17, 2024
1 parent fd51363 commit d909f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image_transport/src/publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void Publisher::publish(sensor_msgs::msg::Image::UniquePtr message) const
}

std::vector<std::shared_ptr<PublisherPlugin>> pubs_take_reference;
std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership = std::nullopt;
std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership{std::nullopt};

for (const auto & pub : impl_->publishers_) {
if (pub->getNumSubscribers() > 0) {
Expand Down

0 comments on commit d909f9b

Please sign in to comment.