Fix clang-tidy warnings in the OpenCL build
[alexxy/gromacs.git] / src / gromacs / mdlib / update.cpp
index 2e76a401ddc3d4b00b3ba49b130a6da2017389a5..adb0694f7dcb3e86cc035e57f9069233fa66b5f6 100644 (file)
@@ -1654,11 +1654,11 @@ void finish_update(const t_inputrec       *inputrec, /* input record and box stu
         }
         else
         {
-            auto           xp = makeConstArrayRef(*upd->xp()).subArray(0, homenr);
-            auto           x  = makeArrayRef(state->x).subArray(0, homenr);
-#ifndef __clang_analyzer__
+            auto xp  = makeConstArrayRef(*upd->xp()).subArray(0, homenr);
+            auto x   = makeArrayRef(state->x).subArray(0, homenr);
+
+
             int gmx_unused nth = gmx_omp_nthreads_get(emntUpdate);
-#endif
 #pragma omp parallel for num_threads(nth) schedule(static)
             for (int i = 0; i < homenr; i++)
             {