Browse Source

Fixed some more static analysis issues in the Box2D code

tags/2021-05-28
ed 5 years ago
parent
commit
52353ae5d5
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp
  2. +1
    -0
      modules/juce_box2d/box2d/Dynamics/b2Body.cpp

+ 1
- 0
modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp View File

@@ -642,6 +642,7 @@ void b2DynamicTree::ValidateMetrics(int32 index) const
int32 height;
height = 1 + b2Max(height1, height2);
b2Assert(node->height == height);
juce::ignoreUnused (height);
b2AABB aabb;
aabb.Combine(m_nodes[child1].aabb, m_nodes[child2].aabb);


+ 1
- 0
modules/juce_box2d/box2d/Dynamics/b2Body.cpp View File

@@ -224,6 +224,7 @@ void b2Body::DestroyFixture(b2Fixture* fixture)
// You tried to remove a shape that is not attached to this body.
b2Assert(found);
juce::ignoreUnused (found);
// Destroy any contacts associated with the fixture.
b2ContactEdge* edge = m_contactList;


Loading…
Cancel
Save