From 6ffbc185bf1b2bf8b6c93e62265545c9498de6dc Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Wed, 21 Mar 2012 15:12:30 +0000 Subject: [PATCH] Fixed warning --- gtsam/nonlinear/DoglegOptimizerImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/nonlinear/DoglegOptimizerImpl.h b/gtsam/nonlinear/DoglegOptimizerImpl.h index 5026a155f..30fed2df9 100644 --- a/gtsam/nonlinear/DoglegOptimizerImpl.h +++ b/gtsam/nonlinear/DoglegOptimizerImpl.h @@ -150,7 +150,7 @@ typename DoglegOptimizerImpl::IterationResult DoglegOptimizerImpl::Iterate( IterationResult result; bool stay = true; - enum { NONE, INCREASED_DELTA, DECREASED_DELTA } lastAction; // Used to prevent alternating between increasing and decreasing in one iteration + enum { NONE, INCREASED_DELTA, DECREASED_DELTA } lastAction = 0; // Used to prevent alternating between increasing and decreasing in one iteration while(stay) { tic(3, "Dog leg point"); // Compute dog leg point