diff --git a/tests/core/timing/TimingPoolTest.cpp b/tests/core/timing/TimingPoolTest.cpp
index db13dc3bd7e2a6a3fa140de4dada2f61f8ac07b4..cec8b57347afb16c27a5dc0c998780eb09b34dde 100644
--- a/tests/core/timing/TimingPoolTest.cpp
+++ b/tests/core/timing/TimingPoolTest.cpp
@@ -48,7 +48,7 @@ void simpleTiming()
          sum += 1;
       pool["In the loop"].end();
    }
-
+   WALBERLA_UNUSED(sum);
    pool["All Together"].end();
 
    cout << pool << endl;
@@ -68,7 +68,7 @@ void scopedTimer()
          sum += std::asin( std::sin( d ) );
          sum += std::acos( std::cos( d ) );
       }
-
+      WALBERLA_UNUSED(sum);
       pool["normal timer"].end();
    }