From c78e44cdc563853c250da78ee78ba622c39126b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Wed, 9 Mar 2005 19:45:59 +0000 Subject: big warning hunt commit lot of casts, added prototypes, missing includes and some true errors --- source/blender/quicktime/apple/quicktime_export.c | 8 ++++---- source/blender/quicktime/apple/quicktime_import.c | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'source/blender/quicktime') diff --git a/source/blender/quicktime/apple/quicktime_export.c b/source/blender/quicktime/apple/quicktime_export.c index 2b455277122..dd97cec736b 100644 --- a/source/blender/quicktime/apple/quicktime_export.c +++ b/source/blender/quicktime/apple/quicktime_export.c @@ -112,13 +112,13 @@ static struct QuicktimeComponentData *qtdata; static int sframe; -void CheckError(OSErr err, char *msg) +static void CheckError(OSErr err, char *msg) { if(err != noErr) printf("%s: %d\n", msg, err); } -OSErr QT_SaveCodecSettingsToScene(void) +static OSErr QT_SaveCodecSettingsToScene(void) { QTAtomContainer myContainer = NULL; ComponentResult myErr = noErr; @@ -179,7 +179,7 @@ bail: } -OSErr QT_GetCodecSettingsFromScene(void) +static OSErr QT_GetCodecSettingsFromScene(void) { Handle myHandle = NULL; ComponentResult myErr = noErr; @@ -221,7 +221,7 @@ bail: } -OSErr QT_AddUserDataTextToMovie (Movie theMovie, char *theText, OSType theType) +static OSErr QT_AddUserDataTextToMovie (Movie theMovie, char *theText, OSType theType) { UserData myUserData = NULL; Handle myHandle = NULL; diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c index 1636d9429a4..99618bc3583 100644 --- a/source/blender/quicktime/apple/quicktime_import.c +++ b/source/blender/quicktime/apple/quicktime_import.c @@ -236,7 +236,7 @@ void free_anim_quicktime (struct anim *anim) { } -OSErr QT_get_frameIndexes(struct anim *anim) +static OSErr QT_get_frameIndexes(struct anim *anim) { int i; OSErr anErr = noErr; @@ -348,7 +348,7 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position) // following two functions only here to get movie pixeldepth -int GetFirstVideoMedia(struct anim *anim) +static int GetFirstVideoMedia(struct anim *anim) { long numTracks; OSType mediaType; @@ -370,10 +370,10 @@ int GetFirstVideoMedia(struct anim *anim) return 0; // went through all tracks and no video } -short GetFirstVideoTrackPixelDepth(struct anim *anim) +static short GetFirstVideoTrackPixelDepth(struct anim *anim) { SampleDescriptionHandle imageDescH = (SampleDescriptionHandle)NewHandle(sizeof(Handle)); - long trackIndex = 0; +// long trackIndex = 0; /*unused*/ if(!GetFirstVideoMedia(anim)) return -1; @@ -507,14 +507,16 @@ int imb_is_a_quicktime (char *name) GraphicsImportComponent theImporter = NULL; FSSpec theFSSpec; - Str255 dst; +#ifdef _WIN32 + Str255 dst; /*unused*/ +#endif char theFullPath[255]; - Boolean isMovieFile = false; - AliasHandle myAlias = NULL; - Component myImporter = NULL; +// Boolean isMovieFile = false; /*unused*/ +// AliasHandle myAlias = NULL; /*unused*/ +// Component myImporter = NULL; /*unused*/ #ifdef __APPLE__ - FInfo myFinderInfo; +// FInfo myFinderInfo; /*unused*/ FSRef myRef; #endif OSErr err = noErr; @@ -564,7 +566,7 @@ ImBuf *imb_quicktime_decode(unsigned char *mem, int size, int flags) int x, y, depth; int have_gw = FALSE; ImBuf *ibuf = NULL; - ImBuf *imbuf = NULL; +// ImBuf *imbuf = NULL; /*unused*/ GWorldPtr offGWorld; PixMapHandle myPixMap = NULL; -- cgit v1.2.3