From: Andrey Alekseenko Date: Thu, 9 Sep 2021 14:46:43 +0000 (+0300) Subject: Fix misc-misplaced-const clang-tidy warning X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=f59607d9c952f8c065da7037a65b4a9429712f6e;p=alexxy%2Fgromacs.git Fix misc-misplaced-const clang-tidy warning The problem was introduced in 4a4ade89 (MR !1903). As MPI_Comm is typedef'd as a pointer to a structure, declaring it const would be of little use: the pointer itself would be const, not the data it is pointing to. --- diff --git a/src/gromacs/fft/tests/fft.cpp b/src/gromacs/fft/tests/fft.cpp index ce3717e210..c421abcb4b 100644 --- a/src/gromacs/fft/tests/fft.cpp +++ b/src/gromacs/fft/tests/fft.cpp @@ -406,7 +406,7 @@ TEST_F(FFTTest3D, GpuReal5_6_9) const FftBackend backend = FftBackend::Ocl; # endif const bool performOutOfPlaceFFT = true; - const MPI_Comm comm = MPI_COMM_NULL; + MPI_Comm comm = MPI_COMM_NULL; const bool allocateGrid = false; std::array gridSizesInXForEachRank = { 0 }; std::array gridSizesInYForEachRank = { 0 };