File blender-2.50-uninit-var.patch of Package blender
Index: extern/bullet2/src/LinearMath/btVector3.h
===================================================================
--- extern/bullet2/src/LinearMath/btVector3.h.orig 2011-03-12 22:34:17.000000000 +0200
+++ extern/bullet2/src/LinearMath/btVector3.h 2011-04-14 13:03:27.053601274 +0200
@@ -70,7 +70,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.);}
Index: extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h
===================================================================
--- extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h.orig 2011-03-12 22:34:17.000000000 +0200
+++ extern/bullet2/src/BulletCollision/BroadphaseCollision/btQuantizedBvh.h 2011-04-14 13:03:27.055601216 +0200
@@ -107,7 +107,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
};