On Thu, Jan 31, 2008 at 08:45:54AM -0500, Don Kerr wrote: > This was brought to my attention once before but I don't see this > message so I just plain forgot about it. :-( > uDAPL defines its pointers as uint64, "typedef DAT_UINT64 DAT_VADDR", > and pval is a "void *" which is why the message comes up. If I remove > the cast I believe I get a different warning and I just haven't stopped > to think of a way around this. dat_pointer = (DAT_VADDR)(uintptr_t)void_pointer;
This is not just a warning. This is a real bug. If MSB of a void pointer will be 1 it will be sign extended. > > Tim Prins wrote: > > Hi, > > > > I am seeing some warnings on the trunk when compiling udapl in 32 bit > > mode with OFED 1.2.5.1: > > > > btl_udapl.c: In function 'udapl_reg_mr': > > btl_udapl.c:95: warning: cast from pointer to integer of different size > > btl_udapl.c: In function 'mca_btl_udapl_alloc': > > btl_udapl.c:852: warning: cast from pointer to integer of different size > > btl_udapl.c: In function 'mca_btl_udapl_prepare_src': > > btl_udapl.c:959: warning: cast from pointer to integer of different size > > btl_udapl.c:1008: warning: cast from pointer to integer of different size > > btl_udapl_component.c: In function 'mca_btl_udapl_component_progress': > > btl_udapl_component.c:871: warning: cast from pointer to integer of > > different size > > btl_udapl_endpoint.c: In function 'mca_btl_udapl_endpoint_write_eager': > > btl_udapl_endpoint.c:130: warning: cast from pointer to integer of > > different size > > btl_udapl_endpoint.c: In function 'mca_btl_udapl_endpoint_finish_max': > > btl_udapl_endpoint.c:775: warning: cast from pointer to integer of > > different size > > btl_udapl_endpoint.c: In function 'mca_btl_udapl_endpoint_post_recv': > > btl_udapl_endpoint.c:864: warning: cast from pointer to integer of > > different size > > btl_udapl_endpoint.c: In function > > 'mca_btl_udapl_endpoint_initialize_control_message': > > btl_udapl_endpoint.c:1012: warning: cast from pointer to integer of > > different size > > > > > > Thanks, > > > > Tim > > _______________________________________________ > > devel mailing list > > de...@open-mpi.org > > http://www.open-mpi.org/mailman/listinfo.cgi/devel > > > _______________________________________________ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel -- Gleb.