diff --git a/gtsam/nonlinear/DoglegOptimizerImpl.h b/gtsam/nonlinear/DoglegOptimizerImpl.h index 30fed2df9..5feaa401a 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 = 0; // Used to prevent alternating between increasing and decreasing in one iteration + enum { NONE, INCREASED_DELTA, DECREASED_DELTA } lastAction = NONE; // Used to prevent alternating between increasing and decreasing in one iteration while(stay) { tic(3, "Dog leg point"); // Compute dog leg point