FindMPI: Fix missing static warning in the mpi test source
I'd still like to have options like -Werror
filtered out of the try_compile
but this should at least fix the immediate problem by fixing the problem -Werror
on clang was failing with.
Fixes: #21753 (closed)
Edited by Brad King