fortran: Fix ident warning
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>
Этот коммит содержится в:
родитель
2e24e6ec08
Коммит
b2ee56aa81
@ -22,13 +22,16 @@
|
|||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
|
||||||
|
#if (OPAL_HAVE_WEAK_SYMBOLS || ! OMPI_BUILD_MPI_PROFILING)
|
||||||
#if OPAL_CC_USE_PRAGMA_IDENT
|
#if OPAL_CC_USE_PRAGMA_IDENT
|
||||||
#pragma ident OMPI_IDENT_STRING
|
#pragma ident OMPI_IDENT_STRING
|
||||||
#elif OPAL_CC_USE_IDENT
|
#elif OPAL_CC_USE_IDENT
|
||||||
#ident OMPI_IDENT_STRING
|
#ident OMPI_IDENT_STRING
|
||||||
#else
|
#else
|
||||||
static const char ident[] = OMPI_IDENT_STRING;
|
const char ident[] = OMPI_IDENT_STRING;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "ompi/mpi/fortran/mpif-h/bindings.h"
|
#include "ompi/mpi/fortran/mpif-h/bindings.h"
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user