summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2021-07-23 00:56:48 +0200
committerGitHub <noreply@github.com>2021-07-23 00:56:48 +0200
commitdf4e209fb0d2dba662fa755f9d049372f3fc2c53 (patch)
treefd86d8a6128c03e6defdf532334f7418ec43d056
parent5fb7e6a9b5230c1bd825912f4d3ac46d13730cc4 (diff)
Remove bad attribute maybe_unused
`CGAL_UNUSED` or `[[maybe_unused]]` is useful if we name the argument but don't use it. If we don't name it, the attribute is wrong as it would apply to the type and not the variable.
-rw-r--r--src/Spatial_searching/include/gudhi/Kd_tree_search.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Spatial_searching/include/gudhi/Kd_tree_search.h b/src/Spatial_searching/include/gudhi/Kd_tree_search.h
index a50a8537..6fb611f2 100644
--- a/src/Spatial_searching/include/gudhi/Kd_tree_search.h
+++ b/src/Spatial_searching/include/gudhi/Kd_tree_search.h
@@ -139,7 +139,7 @@ class Kd_tree_search {
}
template <typename Coord_iterator>
- bool contains_point_given_as_coordinates(Coord_iterator pi, Coord_iterator CGAL_UNUSED) const {
+ bool contains_point_given_as_coordinates(Coord_iterator pi, Coord_iterator) const {
FT distance = 0;
auto ccci = traits.construct_cartesian_const_iterator_d_object();
auto ci = ccci(c);