Skip to content

Commit ba65318

Browse files
committed
fix gcc warning
1 parent 4956c50 commit ba65318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depthai_bridge/src/TFPublisher.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ std::string TFPublisher::getURDF() {
242242
RCLCPP_DEBUG(logger, "Xacro command: %s", cmd.c_str());
243243
std::array<char, 128> buffer;
244244
std::string result;
245-
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose);
245+
std::unique_ptr<FILE, int(*)(FILE*)> pipe(popen(cmd.c_str(), "r"), pclose);
246246
if(!pipe) {
247247
throw std::runtime_error("popen() failed!");
248248
}

0 commit comments

Comments
 (0)