From 1aa5d6b2931d3fae93eab89825d3f6a76ea8041b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 10 May 2012 15:30:33 +0200 Subject: [PATCH] Silence a warning. --- opm/core/WellsGroup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/core/WellsGroup.cpp b/opm/core/WellsGroup.cpp index 006b7610f..3559d927f 100644 --- a/opm/core/WellsGroup.cpp +++ b/opm/core/WellsGroup.cpp @@ -558,7 +558,8 @@ namespace Opm const std::vector& well_surfacerates_phase) { if (injSpec().control_mode_ == InjectionSpecification::REIN) { - BlackoilPhases::PhaseIndex phase; + // Defaulting to water to satisfy -Wmaybe-uninitialized + BlackoilPhases::PhaseIndex phase = BlackoilPhases::Aqua; switch (injSpec().injector_type_) { case InjectionSpecification::WATER: phase = BlackoilPhases::Aqua;