File blender-2.49-uninit_var.patch of Package blender
Index: blender-2.49/extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
===================================================================
--- extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
+++ extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
@@ -94,7 +94,8 @@ ATTRIBUTE_ALIGNED16 (struct) btOptimized
//for child nodes
int m_subPart;
int m_triangleIndex;
- int m_padding[5];//bad, due to alignment
+ int :5*8*sizeof(int);
+// int m_padding[5];//bad, due to alignment
};
Index: blender-2.49/extern/bullet2/src/LinearMath/btVector3.h
===================================================================
--- extern/bullet2/src/LinearMath/btVector3.h
+++ extern/bullet2/src/LinearMath/btVector3.h
@@ -63,7 +63,8 @@ public:
public:
/**@brief No initialization constructor */
- SIMD_FORCE_INLINE btVector3() {}
+ SIMD_FORCE_INLINE btVector3() {
+ m_floats[0]=m_floats[1]=m_floats[2]=m_floats[3]=btScalar(0.);}