diff --git a/modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp b/modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp index 7389fc0b2b..3287cf7cd5 100644 --- a/modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp +++ b/modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp @@ -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); diff --git a/modules/juce_box2d/box2d/Dynamics/b2Body.cpp b/modules/juce_box2d/box2d/Dynamics/b2Body.cpp index ce3f2ded11..e0f18b201a 100644 --- a/modules/juce_box2d/box2d/Dynamics/b2Body.cpp +++ b/modules/juce_box2d/box2d/Dynamics/b2Body.cpp @@ -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;