diff --git a/dune/common/fmatrix.hh b/dune/common/fmatrix.hh index f3abc8782141bf6e1b8709dd55fd26ffd948d864..ffc8dfc9ae0ba329f4e507c4e19e364edd44af30 100644 --- a/dune/common/fmatrix.hh +++ b/dune/common/fmatrix.hh @@ -273,12 +273,14 @@ namespace Dune row_reference mat_access ( size_type i ) { + DUNE_UNUSED_PARAMETER(i); assert(i == 0); return _data; } const_row_reference mat_access ( size_type i ) const { + DUNE_UNUSED_PARAMETER(i); assert(i == 0); return _data; } diff --git a/dune/common/fvector.hh b/dune/common/fvector.hh index e8b4bba478b2b34467c6a2a0464ddf846dc65cd3..2718f81590c957fc8abbb0a4102e0524873f83c7 100644 --- a/dune/common/fvector.hh +++ b/dune/common/fvector.hh @@ -272,11 +272,13 @@ namespace Dune { DUNE_CONSTEXPR size_type vec_size () const { return 1; } K & vec_access(size_type i) { + DUNE_UNUSED_PARAMETER(i); assert(i == 0); return _data; } const K & vec_access(size_type i) const { + DUNE_UNUSED_PARAMETER(i); assert(i == 0); return _data; } diff --git a/dune/common/parallel/remoteindices.hh b/dune/common/parallel/remoteindices.hh index fb1624149155b1592c702535d064dfb49cbfc07f..f224ba68516a968c712e82695dea26d6e712dd3e 100644 --- a/dune/common/parallel/remoteindices.hh +++ b/dune/common/parallel/remoteindices.hh @@ -1013,6 +1013,7 @@ namespace Dune { int bufferSize, int *position, int n) { + DUNE_UNUSED_PARAMETER(n); // fill with own indices typedef typename ParallelIndexSet::const_iterator const_iterator; typedef IndexPair<GlobalIndex,LocalIndex> PairType; diff --git a/dune/common/poolallocator.hh b/dune/common/poolallocator.hh index 39ddc7b125c5395952bf22e9713fb1ff78c9bc35..612ee586fd337bd2ed676113aa7971046a220b6a 100644 --- a/dune/common/poolallocator.hh +++ b/dune/common/poolallocator.hh @@ -564,7 +564,7 @@ namespace Dune template<class T, std::size_t s> inline typename PoolAllocator<T,s>::pointer - PoolAllocator<T,s>::allocate(std::size_t n, const_pointer hint) + PoolAllocator<T,s>::allocate(std::size_t n, const_pointer) { if(n==1) return static_cast<T*>(memoryPool_.allocate()); diff --git a/dune/common/test/diagonalmatrixtest.cc b/dune/common/test/diagonalmatrixtest.cc index 6f25cd03f0998980967ccb8fe3fddfe0d54d0319..79f4731c020836d140a5f80af5c7095f4129d067 100644 --- a/dune/common/test/diagonalmatrixtest.cc +++ b/dune/common/test/diagonalmatrixtest.cc @@ -70,7 +70,7 @@ void test_interface() void test_initialisation() { - Dune::DiagonalMatrix<int, 2> const b = { 1, 2 }; + DUNE_UNUSED Dune::DiagonalMatrix<int, 2> const b = { 1, 2 }; assert(b.diagonal(0) == 1); assert(b.diagonal(1) == 2); diff --git a/dune/common/test/fmatrixtest.cc b/dune/common/test/fmatrixtest.cc index 4ca9ba1ab3fdbb09a3b152c05de0366833b9f071..31f8d3e8fc8639bce64adfc72aa61a25ca0d5c51 100644 --- a/dune/common/test/fmatrixtest.cc +++ b/dune/common/test/fmatrixtest.cc @@ -554,10 +554,11 @@ void test_interface() void test_initialisation() { - Dune::FieldMatrix<int, 2, 2> const A = { + DUNE_UNUSED Dune::FieldMatrix<int, 2, 2> const A = { { 1, 2 }, { 3, 4 } }; + assert(A[0][0] == 1); assert(A[0][1] == 2); assert(A[1][0] == 3); diff --git a/dune/common/test/fvectortest.cc b/dune/common/test/fvectortest.cc index d83b81423458061a6e666b98a406d3deb32b3215..7cfbcf2cfc5aea09b15ac91f6b7a323f4522609a 100644 --- a/dune/common/test/fvectortest.cc +++ b/dune/common/test/fvectortest.cc @@ -229,7 +229,7 @@ struct DotProductTest { DotProductTest() { typedef std::complex<rt> ct; - const rt myEps = Epsilon<rt>::value(); + DUNE_UNUSED const rt myEps = Epsilon<rt>::value(); static_assert( ( Dune::is_same< typename Dune::FieldTraits<rt>::real_type, rt>::value ), @@ -367,7 +367,7 @@ test_infinity_norms() void test_initialisation() { - Dune::FieldVector<int, 2> const b = { 1, 2 }; + DUNE_UNUSED Dune::FieldVector<int, 2> const b = { 1, 2 }; assert(b[0] == 1); assert(b[1] == 2); diff --git a/dune/common/test/integersequence.cc b/dune/common/test/integersequence.cc index 7f8eb7eadfbad80425406e0fd048f0b5e613a970..c2c1cb7d2065c0b222e19c5ff5e2516575eac939 100644 --- a/dune/common/test/integersequence.cc +++ b/dune/common/test/integersequence.cc @@ -23,7 +23,7 @@ auto array_to_tuple ( const std::array< T, N > &array ) return array_to_tuple_impl( array, Dune::Std::make_index_sequence< N >() ); } -int main ( int argc, char **argv ) +int main ( int, char** ) { using Dune::operator<<; std::array< int, 4 > array{{ 1, 2, 3, 4 }};