Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] 1.5rc5 - warnings from Sun C 5.10
From: Paul H. Hargrove (PHHargrove_at_[hidden])
Date: 2010-08-24 20:40:22


In addition to the atomic.h and Anachronism warnings seen w/ 1.4.3rc1
(http://www.open-mpi.org/community/lists/devel/2010/08/8322.php), I find
some "new" warnings in 1.5rc5.

$ uname -a
SunOS osol-x64 5.11 snv_111b i86pc i386 i86pc

$ cc -V
cc: Sun C 5.10 SunOS_i386 2009/06/03
usage: cc [ options] files. Use 'cc -flags' for details

$ [path_to]/openmpi-1.5rc5/configure CC=cc CXX=CC F77=f77 FC=f90
[...]

$ make
[...]

DUPLICATE of 1.4.3rc1 warnings:

"../../../openmpi-1.5rc5/opal/include/opal/sys/ia32/atomic.h", line 170:
warning: impossible constraint for "%1" asm operand
"../../../openmpi-1.5rc5/opal/include/opal/sys/ia32/atomic.h", line 170:
warning: parameter in inline asm statement unused: %2
"../../../openmpi-1.5rc5/opal/include/opal/sys/ia32/atomic.h", line 187:
warning: impossible constraint for "%1" asm operand
"../../../openmpi-1.5rc5/opal/include/opal/sys/ia32/atomic.h", line 187:
warning: parameter in inline asm statement unused: %2

../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 145: Warning
(Anachronism): Formal argument read_conversion_fn of type extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 146: Warning
(Anachronism): Formal argument write_conversion_fn of type extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 147: Warning
(Anachronism): Formal argument dtype_file_extent_fn of type extern "C"
int(*)(ompi_datatype_t*,int*,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(ompi_datatype_t*,int*,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 172: Warning
(Anachronism): Formal argument write_conversion_fn of type extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 173: Warning
(Anachronism): Formal argument dtype_file_extent_fn of type extern "C"
int(*)(ompi_datatype_t*,int*,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(ompi_datatype_t*,int*,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 197: Warning
(Anachronism): Formal argument read_conversion_fn of type extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 199: Warning
(Anachronism): Formal argument dtype_file_extent_fn of type extern "C"
int(*)(ompi_datatype_t*,int*,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(ompi_datatype_t*,int*,void*).
"../../../../openmpi-1.5rc5/ompi/mpi/cxx/file.cc", line 224: Warning
(Anachronism): Formal argument dtype_file_extent_fn of type extern "C"
int(*)(ompi_datatype_t*,int*,void*) in call to
MPI_Register_datarep(char*, extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(void*,ompi_datatype_t*,int,void*,long long,void*), extern "C"
int(*)(ompi_datatype_t*,int*,void*), void*) is being passed
int(*)(ompi_datatype_t*,int*,void*).
[Though line numbers differ very slightly]

NEW, not seen with 1.4.3rc1, warnings:

Many instances of the following:

"../../../../openmpi-1.5rc5/orte/mca/ess/ess.h", line 61: warning:
attribute "noreturn" may not be applied to variable, ignored
"../../../../openmpi-1.5rc5/orte/mca/errmgr/errmgr.h", line 138:
warning: attribute "noreturn" may not be applied to variable, ignored
[Due to applying __opal_attribute_noreturn__ to a function pointer]

Single instances of the following:

"../../../../../openmpi-1.5rc5/opal/mca/crs/none/crs_none_module.c",
line 136: warning: statement not reached
"../../../../openmpi-1.5rc5/orte/mca/plm/base/plm_base_rsh_support.c",
line 462: warning: implicit function declaration: rindex
"../../../../openmpi-1.5rc5/orte/mca/plm/base/plm_base_rsh_support.c",
line 462: warning: improper pointer/integer combination: op "="
"../../../../openmpi-1.5rc5/orte/mca/plm/base/plm_base_rsh_support.c",
line 565: warning: improper pointer/integer combination: op "="
"../../../../../openmpi-1.5rc5/orte/mca/rmcast/tcp/rmcast_tcp.c", line
982: warning: assignment type mismatch:
"../../../../../openmpi-1.5rc5/orte/mca/rmcast/tcp/rmcast_tcp.c", line
1023: warning: assignment type mismatch:
"../../../../../openmpi-1.5rc5/orte/mca/rmcast/udp/rmcast_udp.c", line
877: warning: assignment type mismatch:
"../../../../../openmpi-1.5rc5/orte/mca/rmcast/udp/rmcast_udp.c", line
918: warning: assignment type mismatch:
"../../../../openmpi-1.5rc5/orte/tools/orte-ps/orte-ps.c", line 288:
warning: initializer does not fit or is out of range: 0xfffffffe
"../../../../openmpi-1.5rc5/orte/tools/orte-ps/orte-ps.c", line 289:
warning: initializer does not fit or is out of range: 0xfffffffe
"
"../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c",
line 110: warning: improper pointer/integer combination: arg #3
"../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c",
line 135: warning: improper pointer/integer combination: arg #3
"../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c",
line 201: warning: assignment type mismatch:
        pointer to char "=" pointer to int
"../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c",
line 207: warning: assignment type mismatch:
        pointer to char "=" pointer to int
"../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c",
line 280: warning: argument #1 is incompatible with prototype:
        prototype: pointer to char : "/usr/include/sys/mman.h", line 238
        argument : pointer to struct mca_common_sm_mmap_t {struct
opal_list_item_t {..} map_item, pointer to struct
mca_common_sm_file_header_t {..} map_seg, pointer to unsigned char
map_addr, pointer to unsigned char data_addr, unsigned int map_size,
array[1025] of char map_path}

-Paul

-- 
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