summaryrefslogtreecommitdiff
path: root/Modules/FindMPI
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2021-06-30 16:51:06 -0400
committerChuck Atkins <chuck.atkins@kitware.com>2021-06-30 16:51:06 -0400
commit8cce0ad32fba98dc3e3f6cdd952d07a955479357 (patch)
tree668a9af271defc390b2efe02d15244ea1ead2183 /Modules/FindMPI
parent88fade3914629666b28260f2197c8f11c6737857 (diff)
downloadcmake-8cce0ad32fba98dc3e3f6cdd952d07a955479357.tar.gz
FindMPI: Fix missing static warning in the mpi test source
Diffstat (limited to 'Modules/FindMPI')
-rw-r--r--Modules/FindMPI/test_mpi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/FindMPI/test_mpi.c b/Modules/FindMPI/test_mpi.c
index 7c96d54a8f..70d7e1d3e0 100644
--- a/Modules/FindMPI/test_mpi.c
+++ b/Modules/FindMPI/test_mpi.c
@@ -7,15 +7,15 @@
#endif
#if defined(MPI_VERSION) && defined(MPI_SUBVERSION)
-const char mpiver_str[] = { 'I', 'N',
- 'F', 'O',
- ':', 'M',
- 'P', 'I',
- '-', 'V',
- 'E', 'R',
- '[', ('0' + MPI_VERSION),
- '.', ('0' + MPI_SUBVERSION),
- ']', '\0' };
+const static char mpiver_str[] = { 'I', 'N',
+ 'F', 'O',
+ ':', 'M',
+ 'P', 'I',
+ '-', 'V',
+ 'E', 'R',
+ '[', ('0' + MPI_VERSION),
+ '.', ('0' + MPI_SUBVERSION),
+ ']', '\0' };
#endif
int main(int argc, char* argv[])