1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Fixed some more static analysis issues in the Box2D code

This commit is contained in:
ed 2020-03-18 13:47:49 +00:00
parent c1cb7cea9a
commit 52353ae5d5
2 changed files with 2 additions and 0 deletions

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);

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;