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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user