From 4d2587c26136952ba2b2c42d7b7e4a68571492ea Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 13 Jun 2023 09:01:19 -0400 Subject: [PATCH] Fox unused-but-set-variable warning --- source/opencascade/utilities.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5