From: Matthias Maier Date: Thu, 16 Apr 2015 11:03:40 +0000 (+0200) Subject: Silence warnings caused by opencascade headers X-Git-Tag: v8.3.0-rc1~262^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F811%2Fhead;p=dealii.git Silence warnings caused by opencascade headers --- diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 98f0b973c0..9c8e8e985e 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -8,11 +8,18 @@ #include -#include -#include +#include #include #include +// 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 #include #include @@ -59,6 +66,10 @@ #include #include +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + #include #include