Skip to content

Commit

Permalink
fix gcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Jan 9, 2025
1 parent 682986b commit 1615f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depthai_bridge/src/TFPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ std::string TFPublisher::getURDF() {
RCLCPP_DEBUG(logger, "Xacro command: %s", cmd.c_str());
std::array<char, 128> buffer;
std::string result;
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose);
std::unique_ptr<FILE, int(*)(FILE*)> pipe(popen(cmd.c_str(), "r"), pclose);
if(!pipe) {
throw std::runtime_error("popen() failed!");
}
Expand Down

0 comments on commit 1615f24

Please sign in to comment.