Skip to content
Snippets Groups Projects
Commit 2a33f594 authored by Timo Koch's avatar Timo Koch
Browse files

[python] Silence false positive self assigment warning

Possible bug in clang is tracked here:
https://bugs.llvm.org/show_bug.cgi?id=43124
parent 2f45f8d0
No related branches found
No related tags found
1 merge request!523[python] Silence false positive self assigment warning
Pipeline #60333 passed
......@@ -159,8 +159,20 @@ namespace Dune
cls.def( "__len__", [] ( const BlockVector &self ) { return self.N(); } );
cls.def( pybind11::self += pybind11::self );
// silence a warning (false positive) emitted by clang
// https://bugs.llvm.org/show_bug.cgi?id=43124
#ifdef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wself-assign-overloaded"
#endif
cls.def( pybind11::self -= pybind11::self );
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
detail::registerOneTensorInterface( cls );
detail::registerISTLIterators( cls );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment