Skip to content

Commit

Permalink
Remove infinite recursion
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Feb 14, 2024
1 parent 5d0a2d0 commit f0424d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions point_cloud_transport/src/publisher_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
namespace point_cloud_transport
{

PublisherPlugin::EncodeResult PublisherPlugin::encode(const sensor_msgs::msg::PointCloud2 & raw)
PublisherPlugin::EncodeResult PublisherPlugin::encode(const sensor_msgs::msg::PointCloud2 & /*raw*/)
const
{
return this->encode(raw);
// TODO(ahcorde): Review this, infinite recursion
// return this->encode(raw);
return std::nullopt;
}

void PublisherPlugin::advertise(
Expand Down

0 comments on commit f0424d5

Please sign in to comment.