The following was seen in a "make check" with 1.5rc5 on FreeBSD-8.0/i386
w/ gcc-4.2.1, but I don't think that these warnings are platform
specific. These warnings do not occur with 1.4.3rc1
I was vaguely recalling that gcc-4.2.1 might be one of the versions that
generates incorrect "discards qualifiers" warnings. So, I retried w/
gcc-4.4.2, but the results were the same.
-Paul
gmake[3]: Entering directory
`/home/phargrov/openmpi-1.5rc5/BLD-gcc/test/datatype'
CC opal_datatype_test.o
In file included from ../../../test/datatype/opal_datatype_test.c:23:
../../../test/datatype/opal_ddt_lib.h:52:33: warning: no newline at end
of file
../../../test/datatype/opal_datatype_test.c: In function 'main':
../../../test/datatype/opal_datatype_test.c:431: warning: assignment
discards qualifiers from pointer target type
../../../test/datatype/opal_datatype_test.c:533: warning: passing
argument 1 of 'test_create_blacs_type1' discards qualifiers from pointer
target type
../../../test/datatype/opal_datatype_test.c:534: warning: passing
argument 1 of 'test_create_blacs_type2' discards qualifiers from pointer
target type
CC opal_ddt_lib.o
In file included from ../../../test/datatype/opal_ddt_lib.c:23:
../../../test/datatype/opal_ddt_lib.h:52:33: warning: no newline at end
of file
../../../test/datatype/opal_ddt_lib.c: In function 'test_struct':
../../../test/datatype/opal_ddt_lib.c:154: warning: passing argument 4
of 'opal_datatype_create_struct' from incompatible pointer type
../../../test/datatype/opal_ddt_lib.c: In function
'test_struct_char_double':
../../../test/datatype/opal_ddt_lib.c:173: warning: initialization
discards qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:173: warning: initialization
discards qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c: In function 'mpich_typeub':
../../../test/datatype/opal_ddt_lib.c:642: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:662: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c: In function 'mpich_typeub2':
../../../test/datatype/opal_ddt_lib.c:694: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:695: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:696: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c: In function 'mpich_typeub3':
../../../test/datatype/opal_ddt_lib.c:774: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:775: warning: assignment discards
qualifiers from pointer target type
../../../test/datatype/opal_ddt_lib.c:776: warning: assignment discards
qualifiers from pointer target type
--
Paul H. Hargrove phhargr...@lbl.gov
Future Technologies Group
HPC Research Department Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory Fax: +1-510-486-6900