Unverified Commit 792c33e5 authored by Thomas PEYRUCAIN's avatar Thomas PEYRUCAIN Committed by GitHub
Browse files

Update signal-cast-registerer.cpp

Resolve the unused-but-set-variable warning from res value to have a stable release in ros buildfarm
parent 6bd87be7
...@@ -139,15 +139,6 @@ BOOST_AUTO_TEST_CASE(standard_double_registerer) { ...@@ -139,15 +139,6 @@ BOOST_AUTO_TEST_CASE(standard_double_registerer) {
BOOST_AUTO_TEST_CASE(custom_vector_registerer) { BOOST_AUTO_TEST_CASE(custom_vector_registerer) {
dynamicgraph::Signal<dynamicgraph::Vector, int> myVectorSignal("vector"); dynamicgraph::Signal<dynamicgraph::Vector, int> myVectorSignal("vector");
/// Create a second local vector registerer to generate an exception.
bool res = false;
try {
EigenCastRegisterer_V myVectorCast2;
} catch (const ExceptionSignal &aes) {
res = (aes.getCode() == ExceptionSignal::GENERIC);
}
BOOST_CHECK(res); // Uncomment this line to resolve the unused-but-set-variable warning to have a stable release in ros buildfarm
// Print the signal name. // Print the signal name.
{ {
output_test_stream output; output_test_stream output;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment