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

@@ -68,7 +68,6 @@ static void change_layer_dimension(
{
struct VNode *vnode = vblayer->vnode;
unsigned int t_width = ((VBitmapData*)(vnode->data))->t_width;
unsigned int t_height = ((VBitmapData*)(vnode->data))->t_height;
unsigned int width = ((VBitmapData*)(vnode->data))->width;
unsigned int height = ((VBitmapData*)(vnode->data))->height;
unsigned int x, y, i, j;
@@ -138,6 +137,9 @@ static void *alloc_verse_bitmap_layer_data(VBitmapLayer *vblayer)
case VN_B_LAYER_REAL64:
data = (void*)MEM_mallocN(sizeof(double)*size, "VBLayer data float32");
break;
default:
data = NULL;
break;
}
return data;