From: Daniel Arndt <arndtd@ornl.gov>
Date: Tue, 7 Apr 2020 17:47:41 +0000 (-0400)
Subject: Fix unused warning
X-Git-Tag: v9.2.0-rc1~272^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9849%2Fhead;p=dealii.git

Fix unused warning
---

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_<>()")));
+        }
     }