1
1
On OS X, where #pragma ident and #ident aren't supported, the
use of a static const star that was never used was generating
a warning (and, it should be noted, was useless, because the
compiler would optimize it away).  Fix up the ident declaration
so that it is only created once in libmpi_mpifh.la.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
Этот коммит содержится в:
Brian Barrett 2018-09-28 19:09:06 -07:00
родитель 2e24e6ec08
Коммит b2ee56aa81

Просмотреть файл

@ -22,13 +22,16 @@
#include "ompi_config.h"
#if (OPAL_HAVE_WEAK_SYMBOLS || ! OMPI_BUILD_MPI_PROFILING)
#if OPAL_CC_USE_PRAGMA_IDENT
#pragma ident OMPI_IDENT_STRING
#elif OPAL_CC_USE_IDENT
#ident OMPI_IDENT_STRING
#else
static const char ident[] = OMPI_IDENT_STRING;
const char ident[] = OMPI_IDENT_STRING;
#endif
#endif
#include "ompi/mpi/fortran/mpif-h/bindings.h"