Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid warnings with SMPI + MC asserts
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 11 Dec 2019 07:23:08 +0000 (08:23 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 11 Dec 2019 07:23:08 +0000 (08:23 +0100)
include/smpi/mpi.h
teshsuite/smpi/mpich3-test/io/simple_collective.c

index ebca312..b2c6e2b 100644 (file)
@@ -19,7 +19,7 @@
 
 #if SIMGRID_HAVE_MC
 #undef assert
-#define assert(x) MC_assert(x)
+#define assert(x) MC_assert((int)(x))
 #endif
 
 #ifdef TRACE_CALL_LOCATION /* Defined by smpicc on the command line */
index 82c3b4d..2acc2bc 100644 (file)
@@ -148,7 +148,7 @@ static int parse_args(int argc, char **argv)
     }
 
     opt_file = strdup(argv[optind]);
-    assert(opt_file);
+    assert(opt_file!=NULL);
 
     return (0);
 }