From ab662ae85c4c9d3a2e28f1c26926934708f57482 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Sun, 3 Feb 2008 18:50:03 +0000 Subject: More fixes for gcc warnings. --- source/blender/avi/intern/avi.c | 2 +- source/blender/avi/intern/endian.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/avi') diff --git a/source/blender/avi/intern/avi.c b/source/blender/avi/intern/avi.c index 7e3d7ac6133..da51c00c196 100644 --- a/source/blender/avi/intern/avi.c +++ b/source/blender/avi/intern/avi.c @@ -632,7 +632,7 @@ AviError AVI_open_movie (char *name, AviMovie *movie) { } void *AVI_read_frame (AviMovie *movie, AviFormat format, int frame, int stream) { - int cur_frame, temp, i, rewind=1; + int cur_frame=-1, temp, i=0, rewind=1; void *buffer; /* Retrieve the record number of the desired frame in the index diff --git a/source/blender/avi/intern/endian.c b/source/blender/avi/intern/endian.c index 152530dac0d..2ebbd5d4975 100644 --- a/source/blender/avi/intern/endian.c +++ b/source/blender/avi/intern/endian.c @@ -50,6 +50,7 @@ #define WORDS_BIGENDIAN #endif +#ifdef WORDS_BIGENDIAN static void invert (int *num) { int new=0,i,j; @@ -79,6 +80,7 @@ static void Ichunk (AviChunk *chunk) { invert (&chunk->fcc); invert (&chunk->size); } +#endif #ifdef WORDS_BIGENDIAN static void Ilist (AviList *list){ -- cgit v1.2.3