Skip to content

Commit

Permalink
3 to 4: resolve codecheck warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
  • Loading branch information
adlarkin committed Dec 18, 2020
1 parent 096c5e8 commit d963ec1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/SimulationRunner.hh
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ namespace ignition
struct WorldControl
{
/// \brief True to pause simulation.
/// cppcheck-suppress unusedStructMember
// cppcheck-suppress unusedStructMember
bool pause{false}; // NOLINT

/// \biref Run a given number of simulation iterations.
/// cppcheck-suppress unusedStructMember
// cppcheck-suppress unusedStructMember
uint64_t multiStep{0u}; // NOLINT

/// \brief Reset simulation back to time zero. Rewinding resets sim time,
/// real time and iterations.
/// cppcheck-suppress unusedStructMember
// cppcheck-suppress unusedStructMember
bool rewind{false}; // NOLINT

/// \brief Sim time to jump to. A negative value means don't seek.
Expand Down
4 changes: 2 additions & 2 deletions test/integration/physics_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ TEST_F(PhysicsSystemFixture, ResetPositionComponent)

double pos0 = 0.42;

/// cppcheck-suppress variableScope
// cppcheck-suppress variableScope
bool firstRun = true;

testSystem.OnPreUpdate(
Expand Down Expand Up @@ -739,7 +739,7 @@ TEST_F(PhysicsSystemFixture, ResetVelocityComponent)

double vel0 = 3.0;

/// cppcheck-suppress variableScope
// cppcheck-suppress variableScope
bool firstRun = true;

testSystem.OnPreUpdate(
Expand Down

0 comments on commit d963ec1

Please sign in to comment.