From 41de627bbda41923f6b5115700b5b98ce06a281a Mon Sep 17 00:00:00 2001 From: Andres Notzli Date: Wed, 7 Dec 2016 18:05:54 -0800 Subject: [PATCH] Fix initialization order This commit addresses the following warning: ``` warning: field 'd_negOne' will be initialized after field 'd_pivots' [-Wreorder] ``` --- src/theory/arith/simplex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theory/arith/simplex.cpp b/src/theory/arith/simplex.cpp index fecb06811..9dd13711c 100644 --- a/src/theory/arith/simplex.cpp +++ b/src/theory/arith/simplex.cpp @@ -30,7 +30,8 @@ namespace arith { SimplexDecisionProcedure::SimplexDecisionProcedure(LinearEqualityModule& linEq, ErrorSet& errors, RaiseConflict conflictChannel, TempVarMalloc tvmalloc) - : d_conflictVariables() + : d_pivots(0) + , d_conflictVariables() , d_linEq(linEq) , d_variables(d_linEq.getVariables()) , d_tableau(d_linEq.getTableau()) @@ -43,7 +44,6 @@ SimplexDecisionProcedure::SimplexDecisionProcedure(LinearEqualityModule& linEq, , d_zero(0) , d_posOne(1) , d_negOne(-1) - , d_pivots(0) { d_heuristicRule = options::arithErrorSelectionRule(); d_errorSet.setSelectionRule(d_heuristicRule); -- 2.30.2