From 99f98571c2e856b8a3016269bd47fe33516da81f Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Mon, 25 May 2020 08:47:24 +0200 Subject: [PATCH] Fix clang-tidy warnings Change-Id: I8f1b8d22c423dcef5742289e1f3c071e5ba668f2 --- src/gromacs/modularsimulator/statepropagatordata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gromacs/modularsimulator/statepropagatordata.cpp b/src/gromacs/modularsimulator/statepropagatordata.cpp index 2dbd3e836f..8774aeaf0b 100644 --- a/src/gromacs/modularsimulator/statepropagatordata.cpp +++ b/src/gromacs/modularsimulator/statepropagatordata.cpp @@ -113,7 +113,7 @@ StatePropagatorData::StatePropagatorData(int numAtoms { auto localState = std::make_unique(); dd_init_local_state(cr->dd, globalState, localState.get()); - stateHasVelocities = ((static_cast(localState->flags) & (1U << estV)) != 0u); + stateHasVelocities = ((static_cast(localState->flags) & (1U << estV)) != 0U); setLocalState(std::move(localState)); } else @@ -124,7 +124,7 @@ StatePropagatorData::StatePropagatorData(int numAtoms x_ = globalState->x; v_ = globalState->v; copy_mat(globalState->box, box_); - stateHasVelocities = ((static_cast(globalState->flags) & (1U << estV)) != 0u); + stateHasVelocities = ((static_cast(globalState->flags) & (1U << estV)) != 0U); previousX_.resizeWithPadding(localNAtoms_); ddpCount_ = globalState->ddp_count; copyPosition(); @@ -489,7 +489,7 @@ void StatePropagatorData::trajectoryWriterTeardown(gmx_mdoutf* gmx_unused outf) SignallerCallbackPtr StatePropagatorData::registerLastStepCallback() { - return std::make_unique([this](Step step, Time) { + return std::make_unique([this](Step step, Time /*time*/) { lastStep_ = step; isRegularSimulationEnd_ = (step == lastPlannedStep_); }); -- 2.11.4.GIT