Fix warnings with Intel 2021.4
[alexxy/gromacs.git] / src / external / thread_mpi / src / scatter.cpp
index 03117a34b977c75529c8fb0216b105ba791e65bf..0c1a60762f8d0a49ad7e1603f321fc617016019e 100644 (file)
@@ -56,7 +56,7 @@
 
 #include "impl.h"
 #include "collective.h"
-
+#include "unused.h"
 
 
 int tMPI_Scatter(const void* sendbuf, int sendcount, tMPI_Datatype sendtype,
@@ -90,7 +90,7 @@ int tMPI_Scatter(const void* sendbuf, int sendcount, tMPI_Datatype sendtype,
     {
         int       i;
         size_t    sendsize        = sendtype->size*sendcount;
-        size_t    total_send_size = 0;
+        tmpi_unused size_t    total_send_size = 0;
 #ifdef USE_COLLECTIVE_COPY_BUFFER
         tmpi_bool using_cb;
 #endif
@@ -227,7 +227,7 @@ int tMPI_Scatterv(const void* sendbuf, int *sendcounts, int *displs,
     if (myrank == root)
     {
         int       i;
-        size_t    total_send_size = 0;
+        tmpi_unused size_t    total_send_size = 0;
 #ifdef USE_COLLECTIVE_COPY_BUFFER
         tmpi_bool using_cb;
 #endif