Fixed two "unused" warnings

release/4.3a0
Frank Dellaert 2014-01-04 10:14:22 -05:00
parent 902c48d4f1
commit aa6aee1157
2 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,10 @@ void ISAM2::Impl::RemoveVariables(const FastSet<Key>& unusedKeys, const ISAM2Cli
// Reorder and remove from ordering, solution, and fixed keys
ordering.permuteInPlace(unusedToEnd);
BOOST_REVERSE_FOREACH(Key key, unusedKeys) {
Ordering::value_type removed = ordering.pop_back();
#ifndef NDEBUG
Ordering::value_type removed =
#endif
ordering.pop_back();
assert(removed.first == key);
theta.erase(key);
fixedVariables.erase(key);

View File

@ -266,7 +266,6 @@ ConcurrentBatchSmoother::Result ConcurrentBatchSmoother::optimize() {
result.linearVariables = separatorValues_.size();
// Pull out parameters we'll use
const NonlinearOptimizerParams::Verbosity nloVerbosity = parameters_.verbosity;
const LevenbergMarquardtParams::VerbosityLM lmVerbosity = parameters_.verbosityLM;
double lambda = parameters_.lambdaInitial;