Skip to content

Commit 174cca1

Browse files
committed
Disable internal deprecation warning
We forward the deprecated setKeepalive method through the UrDriver which triggers a depracation warning. We disable it (for GCC) for this call.
1 parent 92f2285 commit 174cca1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ur/ur_driver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ void UrDriver::setKeepaliveCount(const uint32_t count)
663663
"set the "
664664
"read timeout in the write commands directly. This keepalive count will overwrite the timeout passed "
665665
"to the write functions.");
666+
// TODO: Remove 2027-05
667+
#pragma GCC diagnostic push
668+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
666669
reverse_interface_->setKeepaliveCount(count);
670+
#pragma GCC diagnostic pop
667671
}
668672

669673
void UrDriver::resetRTDEClient(const std::vector<std::string>& output_recipe,

0 commit comments

Comments
 (0)