From 089035aea8b611c24216e46ae962845aa988cb88 Mon Sep 17 00:00:00 2001 From: Simon Lynen Date: Wed, 22 Jul 2015 19:11:37 +0200 Subject: [PATCH] Initialize double variable target-bound to avoid "maybe-uninitialized" warning --- src/glop/preprocessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glop/preprocessor.cc b/src/glop/preprocessor.cc index 79b19717eb..8f8a036902 100644 --- a/src/glop/preprocessor.cc +++ b/src/glop/preprocessor.cc @@ -1008,7 +1008,7 @@ bool ForcingAndImpliedFreeConstraintPreprocessor::Run(LinearProgram* lp) { const Fractional lower = lp->variable_lower_bounds()[col]; const Fractional upper = lp->variable_upper_bounds()[col]; bool is_forced = false; - Fractional target_bound; + Fractional target_bound = 0.0; for (const SparseColumn::Entry e : column) { if (is_forcing_down[e.row()]) { const Fractional candidate = e.coefficient() < 0.0 ? lower : upper;