mirror of https://github.com/CGAL/cgal
fix warnings about unused arguments or captures
This commit is contained in:
parent
bc770242a5
commit
8746a29fa9
|
|
@ -3729,7 +3729,6 @@ public:
|
||||||
int expected)
|
int expected)
|
||||||
{
|
{
|
||||||
auto value_returned = [this, v0, v1](bool b, bool not_visited) {
|
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()) {
|
if constexpr (cdt_3_can_use_cxx20_format()) if(this->debug_regions()) {
|
||||||
std::cerr << cdt_3_format(" test_edge {} {} return {} {}\n",
|
std::cerr << cdt_3_format(" test_edge {} {} return {} {}\n",
|
||||||
IO::oformat(v0, with_point_and_info),
|
IO::oformat(v0, with_point_and_info),
|
||||||
|
|
@ -3737,6 +3736,7 @@ public:
|
||||||
b,
|
b,
|
||||||
not_visited ? "(new)" : "(cached)");
|
not_visited ? "(new)" : "(cached)");
|
||||||
}
|
}
|
||||||
|
CGAL_USE(this, v0, v1, b, not_visited);
|
||||||
return b;
|
return b;
|
||||||
};
|
};
|
||||||
auto [cached_value_it, not_visited] = new_edge(v0, v1, false);
|
auto [cached_value_it, not_visited] = new_edge(v0, v1, false);
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,15 @@
|
||||||
|
|
||||||
namespace CGAL { namespace internal {
|
namespace CGAL { namespace internal {
|
||||||
|
|
||||||
template < typename T > inline
|
template <typename ...T> inline
|
||||||
void use(const T&) {}
|
void use(T&&...) {}
|
||||||
|
|
||||||
template<typename> void use_type() {}
|
template<typename> void use_type() {}
|
||||||
|
|
||||||
} }
|
} }
|
||||||
|
|
||||||
/// CGAL_USE() is a macro which aims at removing "variable is unused" warnings.
|
/// 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
|
/// CGAL_USE_TYPE() is a macro which aims at removing "typedef locally
|
||||||
/// defined but not used" warnings.
|
/// defined but not used" warnings.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue