The following three warnings occur on 32-bit targets, and can each be
avoided by adding an intermediate cast to uintptr_t or intptr_t:

-bash-4.2$ grep -B2 'different size' make.log
  CC       fcoll_dynamic_file_read_all.lo
/home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:
In function 'mca_fcoll_dynamic_file_read_all':
/home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:591:5:
warning: cast to pointer from integer of different size
/home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:606:9:
warning: cast to pointer from integer of different size
--
  CC       io_ompio.lo
/home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/io/ompio/io_ompio.c:
In function 'ompi_io_ompio_generate_current_file_view':
/home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/io/ompio/io_ompio.c:249:17:
warning: cast from pointer to integer of different size

The following additional warnings show up on a 32-bit Solaris system with
InfiniBand.
I've not looked at whether or not an (u)intptr_t cast is appropriate for
these.
$ grep -B2 'different size' make.log
  CC       btl_openib.lo
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/btl_openib.c:
In function 'check_if_device_support_modify_srq':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/btl_openib.c:272:21:
warning: cast from pointer to integer of different size
--
  CC       connect/btl_openib_connect_udcm.lo
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c:
In function 'udcm_post_send':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c:1455:17:
warning: cast to pointer from integer of different size
--
  CC       btl_usnic_module.lo
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:
In function 'prepare_src_small':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:404:17:
warning: cast to pointer from integer of different size
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_mo
dule.c: In function 'usnic_send':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:1345:21:
warning: cast to pointer from integer of different size
--
  CC
btl_usnic_component.lo/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_component.c:
In function 'usnic_component_progress':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_component.c:884:28:
warning: cast to pointer from integer of different size
--
  CC
btl_usnic_send.lo/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_send.c:
In function 'ompi_btl_usnic_finish_put_or_send':
/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_send.c:138:21:
warning: cast to pointer from integer of different size


-Paul

-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department     Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to