# HG changeset patch # User diego # Date 1223913089 0 # Node ID ff471ebcf7c0c7a08c903b005852c29d5faa0748 # Parent adccbc495cb2a1b8d7ed996b4849163b3048075d Declare ThreadProc as void, it does not return anything, fixes the warning: stream/cache2.c:364: warning: control reaches end of non-void function diff -r adccbc495cb2 -r ff471ebcf7c0 stream/cache2.c --- a/stream/cache2.c Mon Oct 13 15:25:34 2008 +0000 +++ b/stream/cache2.c Mon Oct 13 15:51:29 2008 +0000 @@ -20,11 +20,9 @@ #include "osdep/timer.h" #ifdef WIN32 #include -static DWORD WINAPI ThreadProc(void* s); #elif defined(__OS2__) #define INCL_DOS #include -static void ThreadProc( void *s ); #else #include #endif @@ -37,6 +35,7 @@ int stream_fill_buffer(stream_t *s); int stream_seek_long(stream_t *s,off_t pos); +static void ThreadProc(void *s); typedef struct { // constats: @@ -362,12 +361,9 @@ #if defined(WIN32) || defined(__OS2__) } -#ifdef WIN32 -static DWORD WINAPI ThreadProc(void*s){ -#else // OS2 + static void ThreadProc( void *s ){ #endif -#endif #ifdef CONFIG_GUI use_gui = 0; // mp_msg may not use gui stuff in forked code