From: Wolfgang Bangerth Date: Mon, 29 Jan 2024 19:28:38 +0000 (-0700) Subject: Mark arguments as used. X-Git-Tag: relicensing~100^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1846331b4aea44257508ef27728e8381b1de2026;p=dealii.git Mark arguments as used. --- diff --git a/include/deal.II/cgal/utilities.h b/include/deal.II/cgal/utilities.h index 08524f7578..08928415be 100644 --- a/include/deal.II/cgal/utilities.h +++ b/include/deal.II/cgal/utilities.h @@ -610,6 +610,11 @@ namespace CGALWrappers resort_dealii_vertices_to_cgal_order(const unsigned int structdim, std::vector> &vertices) { + // Mark the two arguments as "used" because some compilers complain about + // arguments used only within an 'if constexpr' block. + (void)structdim; + (void)vertices; + if constexpr (spacedim == 2) if (ReferenceCell::n_vertices_to_type(structdim, vertices.size()) == ReferenceCells::Quadrilateral)