diff --git a/ompi/include/mpi.h.in b/ompi/include/mpi.h.in index d7e526e8a9..03e47e3015 100644 --- a/ompi/include/mpi.h.in +++ b/ompi/include/mpi.h.in @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2007-2016 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2007-2018 Cisco Systems, Inc. All rights reserved * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved. * Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved. * Copyright (c) 2011 Sandia National Laboratories. All rights reserved. @@ -419,17 +419,21 @@ typedef int MPIX_Grequest_class; /* * Removed typedefs. These will be deleted in a future Open MPI release. */ -typedef int (MPI_Copy_function)(MPI_Comm, int, void *, - void *, void *, int *); -typedef int (MPI_Delete_function)(MPI_Comm, int, void *, void *); typedef MPI_Comm_errhandler_function MPI_Comm_errhandler_fn __mpi_interface_removed__("MPI_Comm_errhandler_fn was removed in MPI-3.0; use MPI_Comm_errhandler_function instead"); typedef ompi_file_errhandler_fn MPI_File_errhandler_fn __mpi_interface_removed__("MPI_File_errhandler_fn was removed in MPI-3.0; use MPI_File_errhandler_function instead"); typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn __mpi_interface_removed__("MPI_Win_errhandler_fn was removed in MPI-3.0; use MPI_Win_errhandler_function instead"); -typedef void (MPI_Handler_function)(MPI_Comm *, int *, ...) - __mpi_interface_removed__("MPI_Handler_function was removed in MPI-3.0; use MPI_Win_errhandler_function instead"); + +// NOTE: We intentionally do *not* mark the following as +// deprecated/removed because they are used below in function +// prototypes (and would therefore emit warnings, just for #including +// ). +typedef void (MPI_Handler_function)(MPI_Comm *, int *, ...); +typedef int (MPI_Copy_function)(MPI_Comm, int, void *, + void *, void *, int *); +typedef int (MPI_Delete_function)(MPI_Comm, int, void *, void *); #endif /* !OMPI_OMIT_MPI1_COMPAT_DECLS */