From 291bcaddf1516bcce2cbe00fb431288c2c494275 Mon Sep 17 00:00:00 2001 From: Mike Dubman Date: Thu, 22 May 2014 06:51:28 +0000 Subject: [PATCH] OSHMEM: fix compiler warnings fixed by Roman, reviewed by Miked cmr=v1.8.2:reviewer=ompi-rm1.8 This commit was SVN r31880. --- examples/oshmem_max_reduction.c | 2 +- examples/ring_oshmem_c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/oshmem_max_reduction.c b/examples/oshmem_max_reduction.c index 0b811f7ada..2f0139313a 100644 --- a/examples/oshmem_max_reduction.c +++ b/examples/oshmem_max_reduction.c @@ -48,7 +48,7 @@ int main(void) printf("%d/%d dst =", my_pe, num_pes); for (i = 0; i < N; i+= 1) { - printf(" %d", dst[i]); + printf(" %ld", dst[i]); } printf("\n"); diff --git a/examples/ring_oshmem_c.c b/examples/ring_oshmem_c.c index 35ecf0d1b2..0823b5e1fc 100644 --- a/examples/ring_oshmem_c.c +++ b/examples/ring_oshmem_c.c @@ -14,7 +14,7 @@ int main (int argc, char * argv[]) { static int rbuf = -1; - int proc, nproc, next, prev; + int proc, nproc, next; int message = 10; start_pes(0);