1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

A few minor changes to keep the Clang analyser happy.

This commit is contained in:
jules 2013-11-19 14:11:27 +00:00
parent 2aba3447e4
commit 1e4ba1b550
7 changed files with 13 additions and 14 deletions

View file

@ -467,7 +467,7 @@ void b2Distance(b2DistanceOutput* output,
b2Vec2 closestPoint = simplex.GetClosestPoint();
float32 distanceSqr1 = closestPoint.LengthSquared();
float32 distanceSqr2 = distanceSqr1;
float32 distanceSqr2;// = distanceSqr1;
// Main iteration loop.
int32 iter = 0;

View file

@ -477,7 +477,7 @@ void b2ContactSolver::SolveVelocityConstraints()
//
x.x = - cp1->normalMass * b.x;
x.y = 0.0f;
vn1 = 0.0f;
//vn1 = 0.0f;
vn2 = vc->K.ex.y * x.x + b.y;
if (x.x >= 0.0f && vn2 >= 0.0f)
@ -520,7 +520,7 @@ void b2ContactSolver::SolveVelocityConstraints()
x.x = 0.0f;
x.y = - cp2->normalMass * b.y;
vn1 = vc->K.ey.x * x.y + b.x;
vn2 = 0.0f;
//vn2 = 0.0f;
if (x.y >= 0.0f && vn1 >= 0.0f)
{

View file

@ -245,8 +245,8 @@ void b2ContactManager::AddPair(void* proxyUserDataA, void* proxyUserDataB)
// Contact creation may swap fixtures.
fixtureA = c->GetFixtureA();
fixtureB = c->GetFixtureB();
indexA = c->GetChildIndexA();
indexB = c->GetChildIndexB();
// indexA = c->GetChildIndexA();
// indexB = c->GetChildIndexB();
bodyA = fixtureA->GetBody();
bodyB = fixtureB->GetBody();