diff --git a/opm/core/simulator/TimeStepControl.hpp b/opm/core/simulator/TimeStepControl.hpp index 6d92d5f8..b663df6b 100644 --- a/opm/core/simulator/TimeStepControl.hpp +++ b/opm/core/simulator/TimeStepControl.hpp @@ -93,9 +93,9 @@ namespace Opm protected: template - double euclidianNormSquared( Iterator it, const Iterator end, - int num_components=1 ) const + double euclidianNormSquared( Iterator it, const Iterator end, int num_components = 1 ) const { + static_cast(num_components); // Suppress warning in the serial case. #if HAVE_MPI if ( parallel_information_.type() == typeid(ParallelISTLInformation) ) {