behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Redundancies found by compiling under LLVM 3.0 #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The LLVM 3.0 static analyser is finding some redundancies when compiling for 
OSX Lion:

b2Distance.cpp:438

- float32 distanceSqr2 = distanceSqr1;
+ float32 distanceSqr2;

b2World.cpp:694, 700

'solved' is never read and can be removed from the loop.

b2ContactSolver.cpp:373

- vn1 = 0.0f;

b2ContactSolver.cpp:416

- vn2 = 0.0f;

Original issue reported on code.google.com by mslinkla...@gmail.com on 25 Jul 2011 at 1:17

GoogleCodeExporter commented 9 years ago
It seems like you tested an old version. I didn't find these.

Original comment by erinca...@gmail.com on 23 Aug 2011 at 3:58