diff options
author | Brad King <brad.king@kitware.com> | 2021-07-01 15:32:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-07-01 15:32:09 (GMT) |
commit | bf6c9567920965f7b3aba37079cc1b51f31d969d (patch) | |
tree | c2eab48b3b6888d9714d94a330aea019b73d553f | |
parent | 635a2525642c2e57b197a4a53b8457d6662daf14 (diff) | |
parent | 8cce0ad32fba98dc3e3f6cdd952d07a955479357 (diff) | |
download | CMake-bf6c9567920965f7b3aba37079cc1b51f31d969d.zip CMake-bf6c9567920965f7b3aba37079cc1b51f31d969d.tar.gz CMake-bf6c9567920965f7b3aba37079cc1b51f31d969d.tar.bz2 |
Merge topic 'findmpi-werror-static-fail'
8cce0ad32f FindMPI: Fix missing static warning in the mpi test source
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6293
-rw-r--r-- | Modules/FindMPI/test_mpi.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/FindMPI/test_mpi.c b/Modules/FindMPI/test_mpi.c index 7c96d54..70d7e1d 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[]) |