]> https://gitweb.dealii.org/ - dealii.git/commitdiff
test for all the pramas used in DEAL_II_DISABLE_EXTRA_DIAGNOSTICS to avoid warnings...
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 4 Jul 2015 05:22:31 +0000 (07:22 +0200)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 5 Jul 2015 14:52:52 +0000 (16:52 +0200)
cmake/checks/check_01_compiler_features.cmake

index dba3a8673536ca484454cea80b6f6ce3bf8961dc..25821eb146bb68d5d14a9a2983feda02bc9950d1 100644 (file)
@@ -327,6 +327,17 @@ CHECK_CXX_SOURCE_COMPILES(
   "
   _Pragma(\"GCC diagnostic push\")
   _Pragma(\"GCC diagnostic ignored \\\\\\\"-Wextra\\\\\\\"\")
+  _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-but-set-parameter\\\\\\\"\")
+  _Pragma(\"GCC diagnostic ignored \\\\\\\"-Wnested-anon-types\\\\\\\"\")
+  _Pragma(\"GCC diagnostic ignored \\\\\\\"-Wunused-private-field\\\\\\\"\")
+  _Pragma(\"GCC diagnostic ignored \\\\\\\"-Wdeprecated-declarations\\\\\\\"\")
+  _Pragma(\"GCC diagnostic warning \\\\\\\"-Wpragmas\\\\\\\"\")
   int main() { return 0; }
   _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.