From 8740e9d8fd657c1fdce600460ea0eed850489b5e Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 27 Oct 2013 20:38:51 +0000 Subject: [PATCH] Fixed warning --- gtsam/linear/HessianFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/HessianFactor.cpp b/gtsam/linear/HessianFactor.cpp index 2614aea3f..c2644deff 100644 --- a/gtsam/linear/HessianFactor.cpp +++ b/gtsam/linear/HessianFactor.cpp @@ -454,7 +454,7 @@ void HessianFactor::updateATA(const JacobianFactor& update, const Scatter& scatt DenseIndex slot2 = (j2 == update.size()) ? this->info_.nBlocks()-1 : slots[j2]; for(DenseIndex j1=0; j1<=j2; ++j1) { // Vertical block of Hessian DenseIndex slot1 = (j1 == update.size()) ? this->info_.nBlocks()-1 : slots[j1]; - DenseIndex off0 = updateBlocks.offset(0); + updateBlocks.offset(0); if(slot2 > slot1) info_(slot1, slot2).noalias() += updateBlocks(j1).transpose() * updateBlocks(j2); else if(slot1 > slot2)