diff --git a/dune/istl/io.hh b/dune/istl/io.hh index b01c049e97c184d00a037760ef429e9dec5a5247..935ac04e1061d287cd38ca90be8b189d94ceb44e 100644 --- a/dune/istl/io.hh +++ b/dune/istl/io.hh @@ -154,7 +154,7 @@ namespace Dune { [[maybe_unused]] typename FieldMatrix<K,1,1>::size_type therow, int width, [[maybe_unused]] int precision, - typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr) + [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<K>::value>* sfinae = nullptr) { s << " "; // space in front of each entry s.width(width); // set width for each entry anew @@ -172,7 +172,7 @@ namespace Dune { void print_row (std::ostream& s, const M& A, typename M::size_type I, typename M::size_type J, typename M::size_type therow, int width, int precision, - typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr) + [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<M>::value>* sfinae = nullptr) { typename M::size_type i0=I; for (typename M::size_type i=0; i<A.N(); i++) @@ -411,7 +411,7 @@ namespace Dune { void writeMatrixToMatlabHelper(const FieldType& value, int rowOffset, int colOffset, std::ostream& s, - typename std::enable_if_t<Dune::IsNumber<FieldType>::value>* sfinae = nullptr) + [[maybe_unused]] typename std::enable_if_t<Dune::IsNumber<FieldType>::value>* sfinae = nullptr) { //+1 for Matlab numbering s << rowOffset + 1 << " " << colOffset + 1 << " "; @@ -429,7 +429,7 @@ namespace Dune { void writeMatrixToMatlabHelper(const MatrixType& matrix, int externalRowOffset, int externalColOffset, std::ostream& s, - typename std::enable_if_t<!Dune::IsNumber<MatrixType>::value>* sfinae = nullptr) + [[maybe_unused]] typename std::enable_if_t<!Dune::IsNumber<MatrixType>::value>* sfinae = nullptr) { // Precompute the accumulated sizes of the columns std::vector<typename MatrixType::size_type> colOffset(matrix.M()); diff --git a/dune/python/istl/bvector.hh b/dune/python/istl/bvector.hh index 26bc499af3137a542ac7e8c303ce5620ba6e6ca0..afda14b013a636cdc2bda5cda3ee03006c5d28d5 100644 --- a/dune/python/istl/bvector.hh +++ b/dune/python/istl/bvector.hh @@ -183,7 +183,7 @@ namespace Dune //the generator actually takes the scope into account which is why we do nothing with it here //so when doing a dune.istl blockvector it doesn't actually define any of the rest of the bindings template< class BlockVector, class ... options > - void registerBlockVector ( pybind11::handle scope, pybind11::class_<BlockVector, options ... > cls ) + void registerBlockVector ( pybind11::handle, pybind11::class_<BlockVector, options ... > cls ) { typedef typename BlockVector::size_type size_type; using pybind11::operator""_a; diff --git a/dune/python/istl/preconditioners.hh b/dune/python/istl/preconditioners.hh index f11f45cacdb89a5070c8bf277aaf2fe42d57d963..786aa090f108b5436f979b4bb5915c92406cd279 100644 --- a/dune/python/istl/preconditioners.hh +++ b/dune/python/istl/preconditioners.hh @@ -51,7 +51,7 @@ namespace Dune // ----------------------- template< class X, class Y, class... options > - inline void registerPreconditioners ( pybind11::module module, pybind11::class_< LinearOperator< X, Y >, options... > cls ) + inline void registerPreconditioners ( pybind11::module module, pybind11::class_< LinearOperator< X, Y >, options... > ) { typedef Dune::Preconditioner< X, Y > Preconditioner; @@ -81,7 +81,7 @@ namespace Dune } template< class M, class X, class Y, class... options > - inline void registerMatrixPreconditioners ( pybind11::module module, pybind11::class_< LinearOperator< X, Y >, options... > cls ) + inline void registerMatrixPreconditioners ( pybind11::module module, pybind11::class_< LinearOperator< X, Y >, options... > ) { typedef Dune::Preconditioner< X, Y > Preconditioner;