On 08/13/2009 12:36 PM, Per Jessen wrote:
Dave Plater wrote:
On 08/08/2009 0 I'm still stuck on :- /home/davepl/src/blender-2.49/extern/bullet2/src/LinearMath/btAlignedObjectArray.h: In member function 'virtual void btOptimizedBvh::build(btStridingMeshInterface*, bool, const btVector3&, const
btVector3&)::NodeTriangleCallback::internalProcessTriangleIndex(btVector3*,
int, int)': /home/davepl/src/blender-2.49/extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning: 'node.btOptimizedBvhNode::m_padding[4u]' is used uninitialized in this function
Hmm, I think I know what's going on:
the templated class btAlignedObjectArray has a method push_back(), which in line 224 uses new() in-place to initialize with the contents of argument _Val. I'm guessing that _Val is of type btOptimizedBvhNode, the struct with m_padding[5]. To copy from _Val to the new object, m_padding will also be read, but since it hasn't been initialized ...
Try this in
extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
line 97: instead of "int m_padding[5]" :
"int :5*8*sizeof(int)"
Your solution takes away the uninitialized variable I'll let you know if it works. Regards Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org