diff --git a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h index 077bba235e2..973985619d8 100644 --- a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h +++ b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_3.h @@ -3729,7 +3729,6 @@ public: int expected) { auto value_returned = [this, v0, v1](bool b, bool not_visited) { - CGAL_USE(this); if constexpr (cdt_3_can_use_cxx20_format()) if(this->debug_regions()) { std::cerr << cdt_3_format(" test_edge {} {} return {} {}\n", IO::oformat(v0, with_point_and_info), @@ -3737,6 +3736,7 @@ public: b, not_visited ? "(new)" : "(cached)"); } + CGAL_USE(this, v0, v1, b, not_visited); return b; }; auto [cached_value_it, not_visited] = new_edge(v0, v1, false); diff --git a/Installation/include/CGAL/use.h b/Installation/include/CGAL/use.h index f90486205ce..d31f4f8ee69 100644 --- a/Installation/include/CGAL/use.h +++ b/Installation/include/CGAL/use.h @@ -14,15 +14,15 @@ namespace CGAL { namespace internal { -template < typename T > inline -void use(const T&) {} +template inline +void use(T&&...) {} template void use_type() {} } } /// CGAL_USE() is a macro which aims at removing "variable is unused" warnings. -#define CGAL_USE(x) ::CGAL::internal::use(x) +#define CGAL_USE(...) ::CGAL::internal::use(__VA_ARGS__) /// CGAL_USE_TYPE() is a macro which aims at removing "typedef locally /// defined but not used" warnings.