diff --git a/test/mooneyrivlintest.cc b/test/mooneyrivlintest.cc
index 330aedf378ee8cd6d8d338cf424a6c8df241669e..89a04714f34debb74bd53f8a76e74e436a56b100 100644
--- a/test/mooneyrivlintest.cc
+++ b/test/mooneyrivlintest.cc
@@ -52,7 +52,7 @@ int assembleAndCompare (const Basis basis, const ParameterTree parameters, const
   //////////////////////////////////////////////////////////////
   //  Compute the energy, assemble and compare!
   //////////////////////////////////////////////////////////////
-  
+
   VectorType gradient;
   MatrixType hessianMatrix;
   double energy = assembler.computeEnergy(x);
@@ -90,7 +90,7 @@ int assembleAndCompare (const Basis basis, const ParameterTree parameters, const
 int main (int argc, char *argv[])
 {
 
-  Dune::MPIHelper& mpiHelper = MPIHelper::instance(argc, argv);
+  [[maybe_unused]] Dune::MPIHelper& mpiHelper = MPIHelper::instance(argc, argv);
 
   // ///////////////////////////////////////
   //    Create the grid
@@ -126,8 +126,6 @@ int main (int argc, char *argv[])
       blockedInterleaved()
   ));
 
-  using PowerBasis = decltype(basis);
-
   //////////////////////////////////////////////////////////////
   //  Prepare the iterate x where we want to assemble
   //////////////////////////////////////////////////////////////