From b991c766692d761f84dbcccf33562e89087e4c04 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 2 Jun 2015 17:22:22 -0400 Subject: [PATCH] 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. --- include/deal.II/base/config.h.in | 1 + source/base/data_out_base.cc | 2 ++ 2 files changed, 3 insertions(+) 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 }; /** -- 2.39.5