Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Nov 26, 2023
1 parent 8aec921 commit 95a9126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g2o/core/sparse_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "optimization_algorithm.h"
#include "robust_kernel.h"

#ifndef NDEBUG
namespace {
/**
* tests whether there is a NaN in the array
Expand All @@ -56,6 +57,7 @@ bool arrayHasNaN(const double* array, int size, int* nanIndex = 0) {
return false;
}
} // namespace
#endif

namespace g2o {
using namespace std;
Expand Down

0 comments on commit 95a9126

Please sign in to comment.