Thanks for reporting the issue. I fixed it on the SVN trunk in https://svn.open-mpi.org/trac/ompi/changeset/24989, and filed changset move requests for v1.4 and v1.5.
On Aug 4, 2011, at 9:30 AM, Júlio Hoffimann wrote: > Dear OpenMPI developers, > > When compiling C++ applications with OpenMPI 1.4.3 installed from Ubuntu > repositories, some easily addressable warnings occurs due to unused arguments > in function definitions. Namely, comm_inln.h has the following two > definitions: > inline int > > MPI > ::Comm::NULL_COPY_FN(const MPI::Comm& oldcomm, int comm_keyval, > > > void* extra_state, void* attribute_val_in, > > > void* attribute_val_out, bool& flag) > { > > flag > = false; > > > return MPI_SUCCESS; > } > > > > // ... > // ... > > > > inline int > > MPI > ::Comm::NULL_DELETE_FN(MPI::Comm& comm, int comm_keyval, void* attribute_val, > > > void* extra_state) > { > > > return MPI_SUCCESS; > } > > Since the compiler just needs the function prototype, the solution is just > comment out the unused identifiers: > inline int > > MPI > ::Comm::NULL_COPY_FN(const MPI::Comm& /*oldcomm*/, int /*comm_keyval*/, > > > void* /*extra_state*/, void* /*attribute_val_in*/, > > > void* /*attribute_val_out*/, bool& flag) > { > > flag > = false; > > > return MPI_SUCCESS; > } > > > > // ... > // ... > > > > inline int > > MPI > ::Comm::NULL_DELETE_FN(MPI::Comm& /*comm*/, int /*comm_keyval*/, void* > /*attribute_val*/, > > > void* /*extra_state*/) > { > > > return MPI_SUCCESS; > } > I would appreciate if you fix this cosmetic bug. > > Thanks in advance, > Júlio. > _______________________________________________ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/