@@ -64,6 +64,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
6464 bool res = false ;
6565 try {
6666 int aInt (anet);
67+ aInt++; // silence unused variable warnings to have a stable release in the ros buildfarm
6768 } catch (const dg::ExceptionAbstract &aea) {
6869 output << aea.getExceptionName ();
6970 output2 << aea.what ();
@@ -78,6 +79,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
7879 res = false ;
7980 try {
8081 bool abool (anet);
82+ abool=!abool; // silence unused variable warnings to have a stable release in the ros buildfarm
8183 } catch (const dg::ExceptionAbstract &aea) {
8284 res = (aea.getCode () == dg::ExceptionAbstract::TOOLS);
8385 }
@@ -88,6 +90,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
8890 res = false ;
8991 try {
9092 unsigned int aint (anet);
93+ aint++; // silence unused variable warnings to have a stable release in the ros buildfarm
9194 } catch (const dg::ExceptionAbstract &aea) {
9295 res = (aea.getCode () == dg::ExceptionAbstract::TOOLS);
9396 }
@@ -98,6 +101,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
98101 res = false ;
99102 try {
100103 double adouble (anet);
104+ adouble++; // silence unused variable warnings to have a stable release in the ros buildfarm
101105 } catch (const dg::ExceptionAbstract &aea) {
102106 res = (aea.getCode () == dg::ExceptionAbstract::TOOLS);
103107 }
@@ -108,6 +112,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
108112 res = false ;
109113 try {
110114 float afloat (anet);
115+ afloat++; // silence unused variable warnings to have a stable release in the ros buildfarm
111116 } catch (const dg::ExceptionAbstract &aea) {
112117 res = (aea.getCode () == dg::ExceptionAbstract::TOOLS);
113118 }
0 commit comments