Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation error.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 29 Oct 2012 18:07:17 +0000 (19:07 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 29 Oct 2012 18:07:17 +0000 (19:07 +0100)
src/smpi/smpi_mpi_dt.c:156:10: error: no previous prototype for â€˜smpi_datatype_get_extent’ [-Werror=missing-prototypes]

src/smpi/smpi_mpi_dt.c

index 35707fa93f0f98768311062548865a773a454537..885e6db2593796ec6939074165874be713ccfbaf 100644 (file)
@@ -153,7 +153,7 @@ int smpi_datatype_extent(MPI_Datatype datatype, MPI_Aint * lb,
   return retval;
 }
 
   return retval;
 }
 
-MPI_Aint smpi_datatype_get_extent(MPI_Datatype datatype){
+static MPI_Aint smpi_datatype_get_extent(MPI_Datatype datatype){
   MPI_Aint lb;
   MPI_Aint extent;
   smpi_datatype_extent(datatype, &lb, &extent);
   MPI_Aint lb;
   MPI_Aint extent;
   smpi_datatype_extent(datatype, &lb, &extent);