fix gnu compilation error on Blue Gene/Q
authorAbhinav Bhatele <bhatele@llnl.gov>
Thu, 18 Oct 2012 01:34:16 +0000 (01:34 +0000)
committerAbhinav Bhatele <bhatele@llnl.gov>
Thu, 18 Oct 2012 01:34:16 +0000 (01:34 +0000)
src/arch/pami/machine.c

index 99ecb9931d7a8cb801588fcf56323b5ad939aa81..c925033b3621c4182cd88762ec45e394fcaf2fea 100644 (file)
@@ -767,8 +767,8 @@ void ConverseInit(int argc, char **argv, CmiStartFn fn, int usched, int initret)
                                            must_query_md,
                                            num_algorithm[1]);
     
-    int opt_alg = 0;
-    for (int nalg = 0; nalg < num_algorithm[0]; ++nalg) 
+    int opt_alg = 0, nalg = 0;
+    for (nalg = 0; nalg < num_algorithm[0]; ++nalg)
       if (strstr(always_works_md[nalg].name, "GI") != NULL) {
        opt_alg = nalg;
        break;