Mailinglist Archive: opensuse-programming (31 mails)

< Previous Next >
Re: [opensuse-programming] What's the best way to cure uninitialized variables?
  • From: Dave Plater <dave.plater@xxxxxxxxxxx>
  • Date: Sun, 09 Aug 2009 11:52:54 +0200
  • Message-id: <4A7E9C76.4060805@xxxxxxxxxxx>
On 08/08/2009 04:56 PM, Per Jessen wrote:
Dave Plater wrote:


Thanks Philipp, I will try that but it seems Per's solution works on
the stable blender-2.49, it's completed building with only the last
unitialized variable left to sort out :-
W: blender uninitialized-variable
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224


This is a wild guess: in line 224, try this:

new ( &m_data[size()] ) T(_Val);


/Per Jessen, Z├╝rich


Hi Per, no it doesn't work. I've attached the details of the last
remaining uninitialized variable (I'm using the release version), I will
appreciate any input and meanwhile I'll keep trying myself.
Thanks
Dave P
W: blender uninitialized-variable
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224

extern/bullet2/src/LinearMath/btAlignedObjectArray.h: In member function
'virtual void btOptimizedBvh::build(btStridingMeshInterface*, bool, const
btVector3&, const btVector3&)::No
deTriangleCallback::internalProcessTriangleIndex(btVector3*, int, int)':
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning:
'node.btOptimizedBvhNode::m_padding[4u]' is used uninitialized in this function
extern/bullet2/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp:56: note:
'node.btOptimizedBvhNode::m_padding[4u]' was declared here
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning:
'node.btOptimizedBvhNode::m_padding[3u]' is used uninitialized in this function
extern/bullet2/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp:56: note:
'node.btOptimizedBvhNode::m_padding[3u]' was declared here
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning:
'node.btOptimizedBvhNode::m_padding[2u]' is used uninitialized in this function
extern/bullet2/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp:56: note:
'node.btOptimizedBvhNode::m_padding[2u]' was declared here
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning:
'node.btOptimizedBvhNode::m_padding[1u]' is used uninitialized in this function
extern/bullet2/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp:56: note:
'node.btOptimizedBvhNode::m_padding[1u]' was declared here
extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224: warning:
'node.btOptimizedBvhNode::m_padding[0u]' is used uninitialized in this function
extern/bullet2/src/BulletCollision/CollisionShapes/btOptimizedBvh.cpp:56: note:
'node.btOptimizedBvhNode::m_padding[0u]' was declared here
< Previous Next >