Fix two kinds of warnings reported by clang-tidy
I replaced NULL with the more significant nullptr and I removed the "void" argument in function definition. I compiled successfully with MPI but I cannot verify with the CI pipeline because it seems that there are not available runners.