From 06e7286443d03ba6da7c5dabc6779b67911a7424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 27 May 2015 11:41:52 +0200 Subject: [PATCH] Suppress a warning in serial mode. --- opm/core/simulator/TimeStepControl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ) {