From: Daniel Arndt Date: Tue, 13 Jun 2023 13:01:19 +0000 (-0400) Subject: Fox unused-but-set-variable warning X-Git-Tag: v9.5.0-rc1~121^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15353%2Fhead;p=dealii.git Fox unused-but-set-variable warning --- diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 6b8b7a19e0..cd522b7028 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -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;