Skip to content

Commit 792c33e

Browse files
authored
Update signal-cast-registerer.cpp
Resolve the unused-but-set-variable warning from res value to have a stable release in ros buildfarm
1 parent 6bd87be commit 792c33e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/signal-cast-registerer.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,6 @@ BOOST_AUTO_TEST_CASE(standard_double_registerer) {
139139
BOOST_AUTO_TEST_CASE(custom_vector_registerer) {
140140
dynamicgraph::Signal<dynamicgraph::Vector, int> myVectorSignal("vector");
141141

142-
/// Create a second local vector registerer to generate an exception.
143-
bool res = false;
144-
try {
145-
EigenCastRegisterer_V myVectorCast2;
146-
} catch (const ExceptionSignal &aes) {
147-
res = (aes.getCode() == ExceptionSignal::GENERIC);
148-
}
149-
BOOST_CHECK(res); // Uncomment this line to resolve the unused-but-set-variable warning to have a stable release in ros buildfarm
150-
151142
// Print the signal name.
152143
{
153144
output_test_stream output;

0 commit comments

Comments
 (0)