]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence warnings caused by opencascade headers 811/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 16 Apr 2015 11:03:40 +0000 (13:03 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 16 Apr 2015 11:08:49 +0000 (13:08 +0200)
source/opencascade/utilities.cc

index 98f0b973c098245ed21dd1fee01eadd4bd7ec8af..9c8e8e985e6dd4d15f5b3c0e9e847b3bd9e692e5 100644 (file)
@@ -8,11 +8,18 @@
 
 #include <boost/bind.hpp>
 
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
 #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
+
 #include <IGESControl_Controller.hxx>
 #include <IGESControl_Reader.hxx>
 #include <IGESControl_Writer.hxx>
 #include <GCPnts_AbscissaPoint.hxx>
 #include <ShapeAnalysis_Surface.hxx>
 
+#ifdef __GNUC__
+#  pragma GCC diagnostic pop
+#endif
+
 #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.