From 9588afdfdbfbb10c30ca467fc409fb2d00ded69c Mon Sep 17 00:00:00 2001
From: Markus Blatt <markus@dr-blatt.de>
Date: Tue, 1 Sep 2015 11:27:34 +0200
Subject: [PATCH] [release] Removes unused parameter warnings

---
 dune/common/diagonalmatrix.hh                      | 1 +
 dune/common/parallel/communicator.hh               | 1 +
 dune/common/parallel/indicessyncer.hh              | 3 +--
 dune/common/parallel/mpicollectivecommunication.hh | 2 +-
 dune/common/test/iteratortest.hh                   | 4 ++--
 5 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/dune/common/diagonalmatrix.hh b/dune/common/diagonalmatrix.hh
index 5fce4b290..d59efdbef 100644
--- a/dune/common/diagonalmatrix.hh
+++ b/dune/common/diagonalmatrix.hh
@@ -853,6 +853,7 @@ namespace Dune {
     //! random access
     K& operator[] (size_type i)
     {
+      DUNE_UNUSED_PARAMETER(i);
 #ifdef DUNE_FMatrix_WITH_CHECKING
       if (i!=row_)
         DUNE_THROW(FMatrixError,"index is contained in pattern");
diff --git a/dune/common/parallel/communicator.hh b/dune/common/parallel/communicator.hh
index 23dcebadd..2d5ac757a 100644
--- a/dune/common/parallel/communicator.hh
+++ b/dune/common/parallel/communicator.hh
@@ -1260,6 +1260,7 @@ namespace Dune
   template<class Data, class GatherScatter, bool FORWARD>
   inline void BufferedCommunicator::MessageGatherer<Data,GatherScatter,FORWARD,VariableSize>::operator()(const InterfaceMap& interfaces,const Data& data, Type* buffer, size_t bufferSize) const
   {
+    DUNE_UNUSED_PARAMETER(bufferSize);
     typedef typename InterfaceMap::const_iterator
     const_iterator;
 
diff --git a/dune/common/parallel/indicessyncer.hh b/dune/common/parallel/indicessyncer.hh
index 07544143b..1d38ccb06 100644
--- a/dune/common/parallel/indicessyncer.hh
+++ b/dune/common/parallel/indicessyncer.hh
@@ -459,8 +459,7 @@ namespace Dune
    */
   template<typename T, typename A, typename A1>
   void storeGlobalIndicesOfRemoteIndices(std::map<int,SLList<std::pair<typename T::GlobalIndex, typename T::LocalIndex::Attribute>,A> >& globalMap,
-                                         const RemoteIndices<T,A1>& remoteIndices,
-                                         const T& indexSet)
+                                         const RemoteIndices<T,A1>& remoteIndices)
   {
     typedef typename RemoteIndices<T,A1>::const_iterator RemoteIterator;
 
diff --git a/dune/common/parallel/mpicollectivecommunication.hh b/dune/common/parallel/mpicollectivecommunication.hh
index b8b54fff7..19058473d 100644
--- a/dune/common/parallel/mpicollectivecommunication.hh
+++ b/dune/common/parallel/mpicollectivecommunication.hh
@@ -50,7 +50,7 @@ namespace Dune
       return *op;
     }
   private:
-    static void operation (Type *in, Type *inout, int *len, MPI_Datatype *dptr)
+    static void operation (Type *in, Type *inout, int *len, MPI_Datatype*)
     {
       BinaryFunction func;
 
diff --git a/dune/common/test/iteratortest.hh b/dune/common/test/iteratortest.hh
index 861d317fc..9f101b2ba 100644
--- a/dune/common/test/iteratortest.hh
+++ b/dune/common/test/iteratortest.hh
@@ -271,10 +271,10 @@ template<>
 struct TestSorting<false>
 {
   template<class Container>
-  static void testSorting(Container& c, std::random_access_iterator_tag)
+  static void testSorting(Container&, std::random_access_iterator_tag)
   {}
   template<class Container, typename IteratorTag>
-  static void testSorting(Container& c, IteratorTag tag)
+  static void testSorting(Container&, IteratorTag)
   {}
 };
 
-- 
GitLab