]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use DEAL_II_DISABLE_EXTRA_DIAGNOSTICS instead 10572/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 22 Jun 2020 19:30:19 +0000 (15:30 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 22 Jun 2020 19:30:19 +0000 (15:30 -0400)
include/deal.II/matrix_free/matrix_free.h

index 71c02cecf9495d37ff99a0f1ad3bdafa8bb92f9e..62bc69bf8c84384056042b51ee52ae26248d1fc7 100644 (file)
@@ -207,12 +207,9 @@ public:
       color = internal::MatrixFreeFunctions::TaskInfo::color
     };
 
-    // clang-format off
-    // Remove with level_mg_handler
-#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
-    _Pragma("GCC diagnostic push")
-    _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
-#endif
+    // remove with level_mg_handler
+    DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+
     /**
      * Constructor for AdditionalData.
      */
@@ -272,9 +269,9 @@ public:
       , cell_vectorization_categories_strict(
           other.cell_vectorization_categories_strict)
     {}
-#ifdef DEAL_II_COMPILER_HAS_DIAGNOSTIC_PRAGMA
-    _Pragma("GCC diagnostic pop")
-#endif
+
+    // remove with level_mg_handler
+    DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
     /**
      * Copy assignment.
@@ -303,7 +300,6 @@ public:
 
       return *this;
     }
-    // clang-format on
 
     /**
      * Set the scheme for task parallelism. There are four options available.

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.