Silence a warning.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-05-10 15:30:33 +02:00
parent 10b738c7e3
commit 1aa5d6b293

View File

@ -558,7 +558,8 @@ namespace Opm
const std::vector<double>& well_surfacerates_phase) const std::vector<double>& well_surfacerates_phase)
{ {
if (injSpec().control_mode_ == InjectionSpecification::REIN) { 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_) { switch (injSpec().injector_type_) {
case InjectionSpecification::WATER: case InjectionSpecification::WATER:
phase = BlackoilPhases::Aqua; phase = BlackoilPhases::Aqua;