FindMPI: warning in mpi test source.
The current mpi test source hits a warning with gcc when using -Wextra
. This causes issues finding MPI when combined with -Werror
.
For example, with gcc 9.3.0:
$ mpicc -Wextra -Werror test_mpi.c
test_mpi.c:10:1: error: ‘static’ is not at beginning of declaration [-Werror=old-style-declaration]
10 | const static char mpiver_str[] = { 'I', 'N',
| ^~~~~
cc1: all warnings being treated as errors