3535#include " ur_client_library/rtde/rtde_client.h"
3636#include " ur_client_library/control/script_reader.h"
3737#include " ur_client_library/exceptions.h"
38- #include " ur_client_library/helpers.h"
3938#include " ur_client_library/primary/primary_parser.h"
4039#include " ur_client_library/helpers.h"
4140#include < memory>
@@ -188,13 +187,7 @@ void UrDriver::init(const UrDriverConfiguration& config)
188187 URCL_LOG_DEBUG (" Initialization done" );
189188}
190189
191- #ifdef __GNUC__
192- # pragma GCC diagnostic push
193- # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
194- #elif defined(_MSC_VER)
195- # pragma warning(push)
196- # pragma warning(disable : 4996)
197- #endif
190+ URCL_SILENCE_DEPRECATED_BEGIN
198191std::unique_ptr<rtde_interface::DataPackage> urcl::UrDriver::getDataPackage ()
199192{
200193 // This can take one of two values, 0ms or 100ms. The large timeout is for when the robot is commanding the control
@@ -204,11 +197,7 @@ std::unique_ptr<rtde_interface::DataPackage> urcl::UrDriver::getDataPackage()
204197
205198 return rtde_client_->getDataPackage (timeout);
206199}
207- #ifdef __GNUC__
208- # pragma GCC diagnostic pop
209- #elif defined(_MSC_VER)
210- # pragma warning(pop)
211- #endif
200+ URCL_SILENCE_DEPRECATED_END
212201
213202bool UrDriver::getDataPackage (rtde_interface::DataPackage& data_package)
214203{
@@ -708,20 +697,10 @@ void UrDriver::setKeepaliveCount(const uint32_t count)
708697 " set the "
709698 " read timeout in the write commands directly. This keepalive count will overwrite the timeout passed "
710699 " to the write functions." );
711- // TODO: Remove 2027-05
712- #ifdef _MSC_VER
713- # pragma warning(push)
714- # pragma warning(disable : 4996)
715- #else
716- # pragma GCC diagnostic push
717- # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
718- #endif
700+ // TODO: Remove 2027-05
701+ URCL_SILENCE_DEPRECATED_BEGIN
719702 reverse_interface_->setKeepaliveCount (count);
720- #ifdef _MSC_VER
721- # pragma warning(pop)
722- #else
723- # pragma GCC diagnostic pop
724- #endif
703+ URCL_SILENCE_DEPRECATED_END
725704}
726705
727706void UrDriver::resetRTDEClient (const std::vector<std::string>& output_recipe,
0 commit comments