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

@@ -191,7 +191,7 @@ void append_avi(int frame, int *pixels, int rectx, int recty)
/* note that libavi free's the buffer... stupid interface - zr */
rectot= MEM_mallocN(rectx*recty*sizeof(int), "rectot");
rt1= rectot;
rt2= pixels + (recty-1)*rectx;
rt2= (unsigned int*)pixels + (recty-1)*rectx;
/* flip y and convert to abgr */
for (y=0; y < recty; y++, rt1+= rectx, rt2-= rectx) {
memcpy (rt1, rt2, rectx*sizeof(int));