]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Refactor diagnostic pragma for opencascade
authorMatthias Maier <tamiko@43-1.org>
Fri, 17 Apr 2015 22:23:37 +0000 (00:23 +0200)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Apr 2015 22:45:38 +0000 (00:45 +0200)
source/opencascade/utilities.cc

index 9c8e8e985e6dd4d15f5b3c0e9e847b3bd9e692e5..37d4fdfde5175ab68f09c41463cad9c37dceeaa1 100644 (file)
 #include <iostream>
 #include <set>
 
-// Selectively disable -Werror switch for GCC and compiler accepting GCC
-// dialects (such as clang). "diagnostic push" is supported since gcc-4.6
-// and clang-3.3.
-#ifdef __GNUC__
-#  pragma GCC diagnostic push
-#  pragma GCC diagnostic ignored "-Wextra"
-#endif
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 
 #include <IGESControl_Controller.hxx>
 #include <IGESControl_Reader.hxx>
@@ -66,9 +60,7 @@
 #include <GCPnts_AbscissaPoint.hxx>
 #include <ShapeAnalysis_Surface.hxx>
 
-#ifdef __GNUC__
-#  pragma GCC diagnostic pop
-#endif
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <vector>
 #include <algorithm>

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.