From 7eff3c3d576ab8949e7de456514e46bd47a386a1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 1 Dec 2019 13:02:20 -0500 Subject: [PATCH] Disable warning in python-wrappers only for newer clang --- contrib/python-bindings/source/export_point.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5