Skip to content
Snippets Groups Projects
Commit 1623ad6e authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/silence-false-positive-self-assignment-warning-clang' into 'master'

[python] Silence false positive self assigment warning

See merge request core/dune-istl!523
parents 2f45f8d0 2a33f594
No related branches found
No related tags found
No related merge requests found
......@@ -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