diff --git a/opm/simulators/flow/FlowProblemBlackoil.hpp b/opm/simulators/flow/FlowProblemBlackoil.hpp index 8b5209de1..f8e694e8c 100644 --- a/opm/simulators/flow/FlowProblemBlackoil.hpp +++ b/opm/simulators/flow/FlowProblemBlackoil.hpp @@ -1524,7 +1524,7 @@ protected: using ViolationLevel = typename Satfunc::PhaseChecks:: SatfuncConsistencyCheckManager::ViolationLevel; - auto reportFailures = [&sfuncConsistencyChecks, this] + auto reportFailures = [&sfuncConsistencyChecks] (const ViolationLevel level) { sfuncConsistencyChecks.reportFailures