From: Matthias Maier Date: Sat, 18 Apr 2015 08:47:11 +0000 (+0200) Subject: Guard pragmas X-Git-Tag: v8.3.0-rc1~244^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aca9b74aaec530c0c2f1f2aafa9707aa3af20ebb;p=dealii.git Guard pragmas --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 81da0b3ccd..793f3d8893 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -289,11 +289,13 @@ # define DEAL_II_DISABLE_EXTRA_DIAGNOSTICS \ _Pragma("GCC diagnostic push") \ +_Pragma("GCC diagnostic ignored \"-Wpragmas\"") \ _Pragma("GCC diagnostic ignored \"-Wextra\"") \ _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-function\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \ -_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") +_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \ +_Pragma("GCC diagnostic warning \"-Wpragmas\"") # define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \ _Pragma("GCC diagnostic pop")