Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix warnings
authorAugustin Degomme <degomme@wasabi>
Tue, 25 Sep 2018 10:33:46 +0000 (12:33 +0200)
committerAugustin Degomme <degomme@wasabi>
Tue, 25 Sep 2018 10:33:46 +0000 (12:33 +0200)
include/smpi/smpi.h
src/smpi/include/smpi_keyvals.hpp

index 9af55d8..3bc7ae8 100644 (file)
@@ -725,7 +725,7 @@ typedef void MPI_Win_errhandler_function(MPI_Win *, int *, ...);
 typedef int MPI_Grequest_query_function(void *extra_state, MPI_Status *status);
 typedef int MPI_Grequest_free_function(void *extra_state);
 typedef int MPI_Grequest_cancel_function(void *extra_state, int complete);
-#define MPI_DUP_FN MPI_Comm_dup
+#define MPI_DUP_FN 1
 
 #define MPI_WIN_DUP_FN ((MPI_Win_copy_attr_function*)MPI_DUP_FN)
 #define MPI_TYPE_DUP_FN ((MPI_Type_copy_attr_function*)MPI_DUP_FN)
index 43daa90..c6a200f 100644 (file)
@@ -132,7 +132,6 @@ template <typename T> int Keyval::attr_put(int keyval, void* attr_value){
   if(elem==nullptr)
     return MPI_ERR_ARG;
   elem->refcount++;
-  void * value = nullptr;
   int flag=0;
   auto p = attributes()->insert({keyval, attr_value});
   if (!p.second) {