/* PMPI User level calls */
-int PMPI_Init(int *argc, char ***argv)
+int PMPI_Init(int*, char***)
{
xbt_assert(simgrid::s4u::Engine::is_initialized(),
"Your MPI program was not properly initialized. The easiest is to use smpirun to start it.");
}
int PMPI_Error_string(int errorcode, char* string, int* resultlen){
- if (errorcode<0 || string ==nullptr){
+ if (errorcode<0 || errorcode>= MPI_MAX_ERROR_STRING || string ==nullptr){
return MPI_ERR_ARG;
} else {
static const char *smpi_error_string[] = {