diff --git a/tests/signal-cast-registerer.cpp b/tests/signal-cast-registerer.cpp
index 00ac027ca22d92b7a763cb10616f00d4d5deb805..a37d352d583f29b761da14eaa357f732be17e799 100644
--- a/tests/signal-cast-registerer.cpp
+++ b/tests/signal-cast-registerer.cpp
@@ -139,15 +139,6 @@ BOOST_AUTO_TEST_CASE(standard_double_registerer) {
 BOOST_AUTO_TEST_CASE(custom_vector_registerer) {
   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);
-
   // Print the signal name.
   {
     output_test_stream output;
diff --git a/tests/value.cpp b/tests/value.cpp
index 1cde9a44511be5e1e7d587b0292e2c6d1488aaf9..177ace02f59e2ae08cc21841c9eb5b4595948978 100644
--- a/tests/value.cpp
+++ b/tests/value.cpp
@@ -64,6 +64,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
   bool res = false;
   try {
     int aInt(anet);
+    aInt++; // silence unused variable warnings to have a stable release in the ros buildfarm
   } catch (const dg::ExceptionAbstract &aea) {
     output << aea.getExceptionName();
     output2 << aea.what();
@@ -78,6 +79,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
   res = false;
   try {
     bool abool(anet);
+    abool=!abool; // silence unused variable warnings to have a stable release in the ros buildfarm
   } catch (const dg::ExceptionAbstract &aea) {
     res = (aea.getCode() == dg::ExceptionAbstract::TOOLS);
   }
@@ -88,6 +90,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
   res = false;
   try {
     unsigned int aint(anet);
+    aint++; // silence unused variable warnings to have a stable release in the ros buildfarm
   } catch (const dg::ExceptionAbstract &aea) {
     res = (aea.getCode() == dg::ExceptionAbstract::TOOLS);
   }
@@ -98,6 +101,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
   res = false;
   try {
     double adouble(anet);
+    adouble++; // silence unused variable warnings to have a stable release in the ros buildfarm
   } catch (const dg::ExceptionAbstract &aea) {
     res = (aea.getCode() == dg::ExceptionAbstract::TOOLS);
   }
@@ -108,6 +112,7 @@ BOOST_AUTO_TEST_CASE(value_exceptions) {
   res = false;
   try {
     float afloat(anet);
+    afloat++; // silence unused variable warnings to have a stable release in the ros buildfarm
   } catch (const dg::ExceptionAbstract &aea) {
     res = (aea.getCode() == dg::ExceptionAbstract::TOOLS);
   }