Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
[blender.git] / source / blender / blenkernel / intern / verse_bitmap_node.c
index f9b18c38dc83b823cd636b6c9bc8146ca8825f11..5f2c48b5221692a2243bab60f360fb0160db6033 100644 (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;