Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] 1.5rc5 and 1.4.3rc1: type size warnings in ompi_rb_tree test
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2010-08-25 00:58:10


Saw this one on Mac OS X 10.6.1 on an x86_64, but not on older Mac's w/
their default 32-bit void*.
This is present in both the current RCs.
I've not checked if this is present on non-Mac systems.

$ uname -a; echo; sw_vers; echo; gcc --version
Darwin ijog.lbl.gov 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31
22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

ProductName: Mac OS X
ProductVersion: 10.6.1
BuildVersion: 10B504

i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ [path_to]/openmpi-1.5rc5/configure
[...]

$ make
[...]

$ make check
[...]
Making check in class
make ompi_rb_tree opal_bitmap opal_hash_table opal_list
opal_value_array opal_pointer_array
  CC ompi_rb_tree.o
../../../test/class/ompi_rb_tree.c: In function 'test2':
../../../test/class/ompi_rb_tree.c:347: warning: cast to pointer from
integer of different size
../../../test/class/ompi_rb_tree.c:365: warning: cast from pointer to
integer of different size
../../../test/class/ompi_rb_tree.c:373: warning: cast from pointer to
integer of different size
[...]

-- 
Paul H. Hargrove                          PHHargrove_at_[hidden]
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900