Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add -Wextra to CFLAGS too.
[simgrid.git] / teshsuite / smpi / mpich3-test / info / infovallen.c
index 22fbfe5..cc3101f 100644 (file)
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
     MTest_Init(&argc, &argv);
 
     MPI_Info_create(&info);
-    /* Use only named keys incase the info implementation only supports
+    /* Use only named keys in case the info implementation only supports
      * the predefined keys (e.g., IBM) */
     for (i = 0; i < NKEYS; i++) {
         MPI_Info_set(info, keys[i], values[i]);
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
             errs++;
             printf("Incorrect value for key %s\n", keys[i]);
         }
-        if (strlen(value) != vallen) {
+        if ((int)strlen(value) != vallen) {
             errs++;
             printf("value_len returned %d but actual len is %d\n", vallen, (int) strlen(value));
         }