From: Daniel Arndt Date: Sun, 1 Dec 2019 18:02:20 +0000 (-0500) Subject: Disable warning in python-wrappers only for newer clang X-Git-Tag: v9.2.0-rc1~832^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9119%2Fhead;p=dealii.git Disable warning in python-wrappers only for newer clang --- diff --git a/contrib/python-bindings/source/export_point.cc b/contrib/python-bindings/source/export_point.cc index b700247d01..bf3ec715a7 100644 --- a/contrib/python-bindings/source/export_point.cc +++ b/contrib/python-bindings/source/export_point.cc @@ -22,7 +22,7 @@ // clang complains about explicitly assigning boost::python::self to itself // below. However, this is the correct way to define the python bindings. -#ifdef __clang__ +#if defined(__clang__) && __clang_major__ > 6 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wself-assign-overloaded" #endif @@ -107,6 +107,6 @@ namespace python DEAL_II_NAMESPACE_CLOSE -#ifdef __clang__ +#if defined(__clang__) && __clang_major__ > 6 # pragma GCC diagnostic pop #endif