]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fox unused-but-set-variable warning 15353/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 13 Jun 2023 13:01:19 +0000 (09:01 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 13 Jun 2023 13:01:42 +0000 (09:01 -0400)
source/opencascade/utilities.cc

index 6b8b7a19e0f1b0e7271cf008d6d015fb0d1ecc24..cd522b7028925442451bce277bd2ed7336e63277 100644 (file)
@@ -710,7 +710,11 @@ namespace OpenCASCADE
     double minDistance = 1e7;
     gp_Pnt tmp_proj(0.0, 0.0, 0.0);
 
-    unsigned int counter      = 0;
+#  ifdef DEAL_II_HAVE_CXX17
+    [[maybe_unused]] unsigned int counter = 0;
+#  else
+    unsigned int     counter = 0;
+#  endif
     unsigned int face_counter = 0;
 
     TopoDS_Shape out_shape;

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.