[ODE] New code breaks CodeWarrior (minor problem)

Frank C. pox at planetquake.com
Fri Sep 13 16:00:02 2002


I've got a small request concerning the "dClosestLineBoxPoints" 
function in "ode/src/geom.cpp"...

The "int region[i];" line causes CodeWarrior to bail with an "illegal 
constant expression" error (doesn't seem to allow the use of local 
variables in variable definitions - unless there's a compiler setting I 
missed somewhere). "i" looks like it's always equal to 3 at that point, 
so "int region[3];" should still produce the desired result, and keep 
CodeWarrior happy to boot.

Thanks,
Frank.
--