From 4af2b4a915e7b31465a810a883989a8d3a85f338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 21 Apr 2016 10:29:09 +0200 Subject: [PATCH] Silence some recently introduced warnings. --- opm/autodiff/SimulatorBase.hpp | 1 - opm/autodiff/SimulatorBase_impl.hpp | 3 +-- opm/autodiff/StandardWells_impl.hpp | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/SimulatorBase.hpp b/opm/autodiff/SimulatorBase.hpp index f9e6ac42a..6f25c722a 100644 --- a/opm/autodiff/SimulatorBase.hpp +++ b/opm/autodiff/SimulatorBase.hpp @@ -158,7 +158,6 @@ namespace Opm WellState& xw); void computeWellPotentials(const Wells* wells, - const BlackoilState& x, const WellState& xw, std::vector& well_potentials); diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index 915ad40e2..b31a8a617 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -225,7 +225,7 @@ namespace Opm // The well potentials are only computed if they are needed // For now thay are only used to determine default guide rates for group controlled wells if ( is_well_potentials_computed ) { - asImpl().computeWellPotentials(wells, state, well_state, well_potentials); + asImpl().computeWellPotentials(wells, well_state, well_potentials); } } @@ -391,7 +391,6 @@ namespace Opm template void SimulatorBase::computeWellPotentials(const Wells* wells, - const BlackoilState& x, const WellState& xw, std::vector& well_potentials) { diff --git a/opm/autodiff/StandardWells_impl.hpp b/opm/autodiff/StandardWells_impl.hpp index b086984f5..20c97a751 100644 --- a/opm/autodiff/StandardWells_impl.hpp +++ b/opm/autodiff/StandardWells_impl.hpp @@ -181,6 +181,8 @@ namespace Opm std::vector& rvmax_perf, std::vector& surf_dens_perf) { + static_cast(active); // Silence unused argument warning in release mode. + const int nperf = wells().well_connpos[wells().number_of_wells]; const int nw = wells().number_of_wells;