From: David Wells Date: Tue, 2 Jun 2015 21:22:22 +0000 (-0400) Subject: Silence a warning about an unused private member. X-Git-Tag: v8.3.0-rc1~129^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b991c766692d761f84dbcccf33562e89087e4c04;p=dealii.git Silence a warning about an unused private member. The GmvFlags struct is not used in the current implementation, but it may be used in the future. --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 551dd41b40..04b6536e7c 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -296,6 +296,7 @@ _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \ _Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \ +_Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \ _Pragma("GCC diagnostic warning \"-Wpragmas\"") # define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \ diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index aea0e93dac..6f2482b1d9 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -854,7 +854,9 @@ namespace /** * The flags controlling the output */ + DEAL_II_DISABLE_EXTRA_DIAGNOSTICS const DataOutBase::GmvFlags flags; + DEAL_II_ENABLE_EXTRA_DIAGNOSTICS }; /**