Skip to content

Commit ea76d2b

Browse files
committed
fix compiler warnings for gcc
1 parent 79e3475 commit ea76d2b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src_c/IMB_chk_diff.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,10 @@ Output variables:
10621062
if (pos2 - pos1 + 1 == lengths[i])
10631063
c_info->reccnt[rank]++;
10641064
else if (i < Npos) {
1065-
if (ranks[i + 1] == rank && pos2 - pos1 + 1 == (lengths[i] + (lengths[i + 1])))
1066-
c_info->reccnt[rank]++; i++;
1065+
if (ranks[i + 1] == rank && ((pos2 - pos1 + 1) == (lengths[i] + lengths[i + 1]))) {
1066+
c_info->reccnt[rank]++;
1067+
i++;
1068+
}
10671069
}
10681070

10691071
i++;

src_c/IMB_output.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ Input variables:
343343

344344
case SAMPLE_FAILED_INT_OVERFLOW:
345345
#ifdef MPI1
346-
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample; use flag \"-data_type double\"");
346+
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow; use \"-data_type double\"");
347347
#else
348-
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow for given sample");
348+
sprintf(aux_string + offset, " int-overflow; The production rank*size caused int overflow;");
349349
#endif
350350
break;
351351
case SAMPLE_FAILED_TIME_OUT:

0 commit comments

Comments
 (0)