[ODE] warnings

David McClurg dmcclurg at pandemicstudios.com.au
Wed May 15 21:03:02 2002


FWIW,

PLATFORM=msvc
PRECISION=DOUBLE
BUILD=release
WINDOWS16=0

with the lastest source from CVS, the above user-settings and bumping the
VC++ warning level to 4 (/W4) I get--

ode/src/geom.cpp(497) : warning C4706: assignment within conditional
expression
ode/src/geom.cpp(502) : warning C4706: assignment within conditional
expression
ode/src/geom.cpp(510) : warning C4706: assignment within conditional
expression
ode/src/ode.cpp(944) : warning C4189: 'world' : local variable is
initialized but not referenced
ode/src/space.cpp(515) : warning C4244: '=' : conversion from 'const int' to
'unsigned char', possible loss of data
ode/src/space.cpp(519) : warning C4244: '=' : conversion from 'const int' to
'unsigned char', possible loss of data
ode/src/testing.cpp(180) : warning C4611: interaction between '_setjmp' and
C++ object destruction is non-portable

these are probably worth fixing.  the setjmp thing might be fixed if all the
code is ANSI C below it.

ode/src/memory.cpp(224) : warning C4100: 'ptr' : unreferenced formal
parameter
ode/src/matrix.cpp(311) : warning C4100: 'n1' : unreferenced formal
parameter
ode/src/ode.cpp(893) : warning C4100: 'max_size' : unreferenced formal
parameter
ode/src/lcp.cpp(165) : warning C4100: 'nskip' : unreferenced formal
parameter
ode/src/lcp.cpp(702) : warning C4100: 'i' : unreferenced formal parameter
ode/src/lcp.cpp(988) : warning C4100: 'hi' : unreferenced formal parameter
ode/src/lcp.cpp(988) : warning C4100: 'lo' : unreferenced formal parameter
ode/src/joint.cpp(507) : warning C4100: 'j' : unreferenced formal parameter
ode/src/joint.cpp(1534) : warning C4100: 'j' : unreferenced formal parameter
ode/src/joint.cpp(1999) : warning C4100: 'anum' : unreferenced formal
parameter
ode/src/joint.cpp(1999) : warning C4100: 'joint' : unreferenced formal
parameter
ode/src/joint.cpp(2043) : warning C4100: 'j' : unreferenced formal parameter
ode/src/joint.cpp(2142) : warning C4100: 'j' : unreferenced formal parameter
ode/src/joint.cpp(2149) : warning C4100: 'info' : unreferenced formal
parameter
ode/src/joint.cpp(2149) : warning C4100: 'joint' : unreferenced formal
parameter
ode/src/geom.cpp(223) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(223) : warning C4100: 'maxc' : unreferenced formal
parameter
ode/src/geom.cpp(705) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(704) : warning C4100: 'flags' : unreferenced formal
parameter
ode/src/geom.cpp(720) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(719) : warning C4100: 'flags' : unreferenced formal
parameter
ode/src/geom.cpp(807) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(806) : warning C4100: 'flags' : unreferenced formal
parameter
ode/src/geom.cpp(976) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(975) : warning C4100: 'flags' : unreferenced formal
parameter
ode/src/geom.cpp(1005) : warning C4100: 'skip' : unreferenced formal
parameter
ode/src/geom.cpp(1005) : warning C4100: 'contact' : unreferenced formal
parameter
ode/src/geom.cpp(1004) : warning C4100: 'flags' : unreferenced formal
parameter
ode/src/geom.cpp(1004) : warning C4100: 'o2' : unreferenced formal parameter
ode/src/geom.cpp(1004) : warning C4100: 'o1' : unreferenced formal parameter
ode/src/geom.cpp(1364) : warning C4100: 'num' : unreferenced formal
parameter
ode/src/geom.cpp(1370) : warning C4100: 'geom' : unreferenced formal
parameter
ode/src/geom.cpp(1568) : warning C4100: 'num' : unreferenced formal
parameter
ode/src/geom.cpp(1720) : warning C4100: 'num' : unreferenced formal
parameter
ode/src/geom.cpp(1827) : warning C4100: 'geom' : unreferenced formal
parameter
ode/src/testing.cpp(149) : warning C4100: 'ap' : unreferenced formal
parameter
ode/src/testing.cpp(149) : warning C4100: 'msg' : unreferenced formal
parameter
ode/src/testing.cpp(149) : warning C4100: 'num' : unreferenced formal
parameter