Skip to content

Commit

Permalink
Mark unused parameters
Browse files Browse the repository at this point in the history
Fix build for Ubuntu 16.04 where the compilation failed because of some
unused parameters.
To fix this I marked the unused a parameters in DummySearch the same way
it is done in other parts of the code.
  • Loading branch information
flowvision committed Feb 3, 2020
1 parent e7034d0 commit 2107629
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/features/test_normal_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ class DummySearch : public pcl::search::Search<PointT>
virtual int nearestKSearch (const PointT &point, int k, std::vector<int> &k_indices,
std::vector<float> &k_sqr_distances ) const
{
(void)point;

EXPECT_GE (k_indices.size(), k);
EXPECT_GE (k_sqr_distances.size(), k);

Expand All @@ -203,6 +205,11 @@ class DummySearch : public pcl::search::Search<PointT>
virtual int radiusSearch (const PointT& point, double radius, std::vector<int>& k_indices,
std::vector<float>& k_sqr_distances, unsigned int max_nn = 0 ) const
{
(void)point;
(void)radius;
(void)k_indices;
(void)k_sqr_distances;

return max_nn;
}
};
Expand Down

0 comments on commit 2107629

Please sign in to comment.