From 335b91f79a026ce67e1aacbe2faf87612336fb60 Mon Sep 17 00:00:00 2001
From: Daniel Arndt <arndtd@ornl.gov>
Date: Tue, 7 Apr 2020 13:47:41 -0400
Subject: [PATCH] Fix unused warning

---
 .../numerics/data_out_dof_data.templates.h    | 34 +++++++++++--------
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h
index 6ad298b399..3e70538027 100644
--- a/include/deal.II/numerics/data_out_dof_data.templates.h
+++ b/include/deal.II/numerics/data_out_dof_data.templates.h
@@ -494,14 +494,17 @@ namespace internal
 
       // check that the names use only allowed characters
       for (const auto &name : names)
-        Assert(name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
-                                      "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                      "0123456789_<>()") == std::string::npos,
-               Exceptions::DataOutImplementation::ExcInvalidCharacter(
-                 name,
-                 name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+        {
+          (void)name;
+          Assert(name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
                                         "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                        "0123456789_<>()")));
+                                        "0123456789_<>()") == std::string::npos,
+                 Exceptions::DataOutImplementation::ExcInvalidCharacter(
+                   name,
+                   name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+                                          "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+                                          "0123456789_<>()")));
+        }
     }
 
 
@@ -531,14 +534,17 @@ namespace internal
 
       // check that the names use only allowed characters
       for (const auto &name : names)
-        Assert(name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
-                                      "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                      "0123456789_<>()") == std::string::npos,
-               Exceptions::DataOutImplementation::ExcInvalidCharacter(
-                 name,
-                 name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+        {
+          (void)name;
+          Assert(name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
                                         "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                        "0123456789_<>()")));
+                                        "0123456789_<>()") == std::string::npos,
+                 Exceptions::DataOutImplementation::ExcInvalidCharacter(
+                   name,
+                   name.find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+                                          "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+                                          "0123456789_<>()")));
+        }
     }
 
 
-- 
2.39.5