From 52353ae5d5d2f92c9c3ae671a6f1e4aa0b8625bf Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 18 Mar 2020 13:47:49 +0000 Subject: [PATCH] Fixed some more static analysis issues in the Box2D code --- modules/juce_box2d/box2d/Collision/b2DynamicTree.cpp | 1 + modules/juce_box2d/box2d/Dynamics/b2Body.cpp | 1 + 2 files changed, 2 insertions(+) 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;