]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused warning 9849/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 7 Apr 2020 17:47:41 +0000 (13:47 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 7 Apr 2020 17:47:41 +0000 (13:47 -0400)
include/deal.II/numerics/data_out_dof_data.templates.h

index 6ad298b399dc350750160edcd5edb3909fd3ddad..3e705380273559ae8c8dbfdacab7e6d12f5617e2 100644 (file)
@@ -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_<>()")));
+        }
     }
 
 

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.