Skip to content
Snippets Groups Projects
Commit a4fab830 authored by Markus Blatt's avatar Markus Blatt Committed by Carsten Gräser
Browse files

[release] Removes unused parameter warnings


(cherry picked from commit 3bef4991)
Signed-off-by: default avatarCarsten Gräser <graeser@dune-project.org>
parent 6636449d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -271,11 +271,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;
}
......
......@@ -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;
......
......@@ -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());
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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 }};
......
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