From 6cb300c0f9c15df0f8f17f075444145f9549bd26 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 28 Jan 2020 14:09:30 +0100 Subject: [PATCH] initialize variable to avoid warning spew --- ebos/eclproblem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 74ecf5d05..b42b64bff 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -3023,7 +3023,7 @@ private: for (const auto& bcface : bcconfig) { const auto& type = bcface.bctype; if (type == BCType::RATE) { - int compIdx; + int compIdx = 0; switch (bcface.component) { case BCComponent::OIL: