From: Daniel Arndt 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=335b91f79a026ce67e1aacbe2faf87612336fb60;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_<>()"))); + } }