Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Nov 4, 2024
1 parent c4f0cab commit b7208aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/matrix_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void kdtree_demo(const size_t nSamples, const size_t dim)
<< " out_dist_sqr=" << out_dists_sqr[i] << std::endl;
}

int main(int argc, char** argv)
int main(int /*argc*/, char** /*argv*/)
{
// Randomize Seed
// srand(static_cast<unsigned int>(time(nullptr)));
Expand Down
1 change: 1 addition & 0 deletions examples/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ struct PointCloud_Orient
// "if/else's" are actually solved at compile time.
inline T kdtree_get_pt(const size_t idx, const size_t dim = 0) const
{
(void)dim;
return pts[idx].theta;
}

Expand Down
3 changes: 2 additions & 1 deletion include/nanoflann.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,8 @@ class KDTreeSingleIndexAdaptor
// Create a permutable array of indices to the input vectors.
Base::size_ = dataset_.kdtree_get_point_count();
if (Base::vAcc_.size() != Base::size_) Base::vAcc_.resize(Base::size_);
for (Size i = 0; i < Base::size_; i++) Base::vAcc_[i] = i;
for (IndexType i = 0; i < static_cast<IndexType>(Base::size_); i++)
Base::vAcc_[i] = i;
}

void computeBoundingBox(BoundingBox& bbox)
Expand Down

0 comments on commit b7208aa

Please sign in to comment.