From 8298d4c4a849555169f35d881ffcde8d1abb1a71 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Thu, 17 Jun 2004 02:25:42 +0000 Subject: [PATCH] removed some warnings git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1390 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/video/videodec.h | 2 +- sc2/src/sc2code/libs/video/vidplayer.c | 7 ++++--- sc2/src/sc2code/libs/video/vidplayer.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sc2/src/sc2code/libs/video/videodec.h b/sc2/src/sc2code/libs/video/videodec.h index cbec96958..8f4f8c8b5 100644 --- a/sc2/src/sc2code/libs/video/videodec.h +++ b/sc2/src/sc2code/libs/video/videodec.h @@ -30,7 +30,7 @@ typedef struct tfb_videodecoderfunc { const char* (* GetName) (void); bool (* InitModule) (int flags); - void (* TermModule) (); + void (* TermModule) (void); uint32 (* GetStructSize) (void); int (* GetError) (THIS_PTR); bool (* Init) (THIS_PTR, TFB_PixelFormat* fmt); diff --git a/sc2/src/sc2code/libs/video/vidplayer.c b/sc2/src/sc2code/libs/video/vidplayer.c index 965996d2d..fe441163d 100644 --- a/sc2/src/sc2code/libs/video/vidplayer.c +++ b/sc2/src/sc2code/libs/video/vidplayer.c @@ -60,7 +60,7 @@ typedef struct } VIDEO_INPUT_STATE; bool -TFB_InitVideoPlayer () +TFB_InitVideoPlayer (void) { // creation probably needs better handling vp_interthread_lock = CreateSemaphore (1, "inter-thread param lock", @@ -69,13 +69,13 @@ TFB_InitVideoPlayer () } void -TFB_UninitVideoPlayer () +TFB_UninitVideoPlayer (void) { DestroySemaphore (vp_interthread_lock); } void -TFB_FadeClearScreen () +TFB_FadeClearScreen (void) { BYTE xform_buf[1]; RECT r = {{0, 0}, {SCREEN_WIDTH, SCREEN_HEIGHT}}; @@ -522,3 +522,4 @@ vp_QueueBuffer (TFB_SoundSample* sample, audio_Object buffer) TFB_TagBuffer (sample, buffer, (void*) SoundDecoder_GetFrame (sample->decoder)); } + diff --git a/sc2/src/sc2code/libs/video/vidplayer.h b/sc2/src/sc2code/libs/video/vidplayer.h index 095f55330..0ee555d81 100644 --- a/sc2/src/sc2code/libs/video/vidplayer.h +++ b/sc2/src/sc2code/libs/video/vidplayer.h @@ -21,7 +21,7 @@ bool TFB_InitVideoPlayer (void); void TFB_UninitVideoPlayer (void); -void TFB_FadeClearScreen (); +void TFB_FadeClearScreen (void); bool TFB_PlayVideo (VIDEO_REF VidRef, uint32 x, uint32 y); void TFB_StopVideo (VIDEO_REF VidRef); bool TFB_VideoPlaying (VIDEO_REF VidRef);