Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful

unintialized variables in the verse code, verse_session.c:451 and
verse_object_node.c:339, those are properly initialized now.
This commit is contained in:
2006-10-26 23:34:44 +00:00
parent 47f579f514
commit 5376df2689
18 changed files with 116 additions and 33 deletions

View File

@@ -129,8 +129,8 @@ void send_verse_object_position(VNode *vnode)
*/
void send_verse_object_rotation(VNode *vnode)
{
float quat[4];
/* float bvec[3], vvec[3];*/
/* float quat[4];
float bvec[3], vvec[3];*/
VNQuat32 rot;
rot.x = ((VObjectData*)vnode->data)->rot[0];
@@ -360,6 +360,11 @@ static void cb_o_transform_pos_real32(
vec[1] = pos[1];
vec[2] = pos[2];
}
else {
vec[0] = 0.0f;
vec[1] = 0.0f;
vec[2] = 0.0f;
}
if(speed) {
vec[0] += speed[0]*dt;