Skip to content

Commit 4faeccb

Browse files
authored
Update value.cpp
Add operations to the unused variables to silence the unused variable warnings in order to have a stable release of dynamic-graph into the ros buildfarm
1 parent 3b623f2 commit 4faeccb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/value.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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++;
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

Comments
 (0)