From ef51608a816bbedb0d1d327cc578251445ecf9c7 Mon Sep 17 00:00:00 2001 From: Josh Hursey Date: Tue, 11 Oct 2005 22:03:21 +0000 Subject: [PATCH] fix compiler warning This commit was SVN r7706. --- ompi/mpi/cxx/intercepts.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ompi/mpi/cxx/intercepts.cc b/ompi/mpi/cxx/intercepts.cc index 85aec71acb..e6a8b66a49 100644 --- a/ompi/mpi/cxx/intercepts.cc +++ b/ompi/mpi/cxx/intercepts.cc @@ -22,6 +22,11 @@ extern "C" void ompi_mpi_cxx_throw_excptn_fctn(MPI_Comm *, int *errcode, ...) { + /* Portland compiler raises a warning if va_start is not used in a + * variable argument function */ + va_list ap; + va_start(ap, errcode); + va_end(ap); #if OMPI_HAVE_CXX_EXCEPTION_SUPPORT throw(MPI::Exception(*errcode)); #else