]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark arguments as used. 16560/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 29 Jan 2024 19:28:38 +0000 (12:28 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 29 Jan 2024 19:28:38 +0000 (12:28 -0700)
include/deal.II/cgal/utilities.h

index 08524f757871a18fc7d0be7b9d0761b3e4543fcd..08928415be9e43932689c9db7c6c4cb88b1af4b0 100644 (file)
@@ -610,6 +610,11 @@ namespace CGALWrappers
   resort_dealii_vertices_to_cgal_order(const unsigned int            structdim,
                                        std::vector<Point<spacedim>> &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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.