[MPlayer-dev-eng] [PATCH] loader compiler warnings
D Richard Felker III
dalias at aerifal.cx
Thu Apr 8 19:37:56 CEST 2004
On Thu, Apr 08, 2004 at 06:06:55PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> Problem:
> if we enable Quicktime codecs, then
> win32.c:898: warning: no return statement in function returning non-void
> static HANDLE WINAPI expCreateMutexA(void *pSecAttr,
> char bInitialOwner, const char *name)
> {
> HANDLE mlist = (HANDLE)expCreateEventA(pSecAttr, 0, 0, name);
> [...]
> #ifndef QTX
> /* 10l to QTX, if CreateMutex returns a real mutex, WaitForSingleObject
> waits for ever, else it works ;) */
> return mlist;
> #endif
> }
>
> Solution:
> #else
> return (HANDLE)NULL;
Casting NULL is nonsensical. Just return NULL.
Rich
More information about the MPlayer-dev-eng
mailing list