]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable warning in python-wrappers only for newer clang 9119/head
authorDaniel Arndt <arndtd@ornl.gov>
Sun, 1 Dec 2019 18:02:20 +0000 (13:02 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Sun, 1 Dec 2019 18:02:57 +0000 (13:02 -0500)
contrib/python-bindings/source/export_point.cc

index b700247d0125b301f181c6a0bca8d6e151a64a9b..bf3ec715a797d70974cc1b3d0c10863b5c3b2cbc 100644 (file)
@@ -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

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.