[OMPI devel] Warnings in v1.7.4: rcache

2013-10-23 Thread Ralph Castain
One of the recent CMRs has created new warnings in v1.7.4:

rcache_vma.c: In function 'mca_rcache_vma_find':
rcache_vma.c:58:23: warning: pointer of type 'void *' used in arithmetic
[-Wpedantic]
 bound_addr = addr + size - 1;
   ^
rcache_vma.c:58:30: warning: pointer of type 'void *' used in arithmetic
[-Wpedantic]
 bound_addr = addr + size - 1;
  ^
rcache_vma.c: In function 'mca_rcache_vma_find_all':
rcache_vma.c:84:23: warning: pointer of type 'void *' used in arithmetic
[-Wpedantic]
 bound_addr = addr + size - 1;
   ^
rcache_vma.c:84:30: warning: pointer of type 'void *' used in arithmetic
[-Wpedantic]
 bound_addr = addr + size - 1;
  ^


Does someone know where these came from, and how to correct them?
Ralph


Re: [OMPI devel] Warnings in v1.7.4: rcache

2013-10-23 Thread Rolf vandeVaart
Yes, that is from one of my CMRs.  I always configure with -enable-picky  but 
that did not pick up this warning.
I will fix this in the trunk in the morning (watching the Red Sox right now :)) 
and then file CMR to bring over.
Rolf

From: devel [mailto:devel-boun...@open-mpi.org] On Behalf Of Ralph Castain
Sent: Wednesday, October 23, 2013 7:19 PM
To: Open MPI Developers
Subject: [OMPI devel] Warnings in v1.7.4: rcache

One of the recent CMRs has created new warnings in v1.7.4:

rcache_vma.c: In function 'mca_rcache_vma_find':
rcache_vma.c:58:23: warning: pointer of type 'void *' used in arithmetic 
[-Wpedantic]
 bound_addr = addr + size - 1;
   ^
rcache_vma.c:58:30: warning: pointer of type 'void *' used in arithmetic 
[-Wpedantic]
 bound_addr = addr + size - 1;
  ^
rcache_vma.c: In function 'mca_rcache_vma_find_all':
rcache_vma.c:84:23: warning: pointer of type 'void *' used in arithmetic 
[-Wpedantic]
 bound_addr = addr + size - 1;
   ^
rcache_vma.c:84:30: warning: pointer of type 'void *' used in arithmetic 
[-Wpedantic]
 bound_addr = addr + size - 1;
  ^

Does someone know where these came from, and how to correct them?
Ralph

---
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
---