1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-17 07:11:52 +08:00

FindMPI: Fix missing static warning in the mpi test source

This commit is contained in:
Chuck Atkins
2021-06-30 16:51:06 -04:00
parent 88fade3914
commit 8cce0ad32f

View File

@@ -7,15 +7,15 @@
#endif #endif
#if defined(MPI_VERSION) && defined(MPI_SUBVERSION) #if defined(MPI_VERSION) && defined(MPI_SUBVERSION)
const char mpiver_str[] = { 'I', 'N', const static char mpiver_str[] = { 'I', 'N',
'F', 'O', 'F', 'O',
':', 'M', ':', 'M',
'P', 'I', 'P', 'I',
'-', 'V', '-', 'V',
'E', 'R', 'E', 'R',
'[', ('0' + MPI_VERSION), '[', ('0' + MPI_VERSION),
'.', ('0' + MPI_SUBVERSION), '.', ('0' + MPI_SUBVERSION),
']', '\0' }; ']', '\0' };
#endif #endif
int main(int argc, char* argv[]) int main(int argc, char* argv[])