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)
|
||||
{
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -14,15 +14,15 @@
|
|||
|
||||
namespace CGAL { namespace internal {
|
||||
|
||||
template < typename T > inline
|
||||
void use(const T&) {}
|
||||
template <typename ...T> inline
|
||||
void use(T&&...) {}
|
||||
|
||||
template<typename> 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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue