Skip to content

Commit 3d7e500

Browse files
committed
Ignore deprecation warnings on test for deprecated construction
1 parent 6ce8c5d commit 3d7e500

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_deprecated_ur_driver_construction.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
#include <thread>
3434
#include "ur_client_library/ur/ur_driver.h"
3535

36+
// This file adds tests for deprecated constructors of UrDriver. To avoid a compiler warning in CI
37+
// we suppress the warning inside this file / compilation unit.
38+
#ifdef _MSC_VER
39+
# pragma warning(disable : 4996)
40+
#else
41+
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
42+
#endif
43+
3644
const std::string SCRIPT_FILE = "../resources/external_control.urscript";
3745
const std::string OUTPUT_RECIPE = "resources/rtde_output_recipe.txt";
3846
const std::string INPUT_RECIPE = "resources/rtde_input_recipe.txt";

0 commit comments

Comments
 (0)