[vlc-devel] [PATCH 5/5] vlccore: fix a warning on OS/2
Rémi Denis-Courmont
remi at remlab.net
Sat Mar 2 17:30:03 CET 2013
Le samedi 2 mars 2013 17:11:10, KO Myung-Hun a écrit :
> -----
> os2/thread.c: In function 'vlc_cond_timedwait':
> os2/thread.c:329: warning: 'return' with no value, in function returning
> non-voi d
> -----
> ---
> src/os2/thread.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/os2/thread.c b/src/os2/thread.c
> index 10072aa..6ea4dd5 100644
> --- a/src/os2/thread.c
> +++ b/src/os2/thread.c
> @@ -326,7 +326,7 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar,
> vlc_mutex_t *p_mutex, if (!p_condvar->hev)
> { /* FIXME FIXME FIXME */
> msleep (50000);
> - return;
> + return ETIMEDOUT;
I don't think you can claim a time out that did not yet occur.
> }
>
> do
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list