]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Guard pragmas
authorMatthias Maier <tamiko@43-1.org>
Sat, 18 Apr 2015 08:47:11 +0000 (10:47 +0200)
committerMatthias Maier <tamiko@43-1.org>
Sat, 18 Apr 2015 13:21:23 +0000 (15:21 +0200)
include/deal.II/base/config.h.in

index 81da0b3ccd6157494989ff7cfacda34a89112a28..793f3d8893a5d6caf12e7720c9927e919d24db27 100644 (file)
 
 #  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")

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.