Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
vlc
> vlc-no_return_in_non_void.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File vlc-no_return_in_non_void.patch of Package vlc
From 8cd3f4aab6cde63402b5803d5fae0ae60b68c78a Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger <dominique@leuenberger.net> Date: Tue, 4 May 2010 13:39:46 +0200 Subject: [PATCH] no-return-in-non-void --- modules/access/mms/mmstu.c | 1 + modules/control/netsync.c | 2 ++ modules/control/signals.c | 1 + modules/demux/live555.cpp | 1 + modules/stream_out/rtp.c | 1 + src/modules/cache.c | 1 + 6 files changed, 7 insertions(+), 0 deletions(-) Index: vlc-1.1.0-rc2/modules/access/mms/mmstu.c =================================================================== --- vlc-1.1.0-rc2.orig/modules/access/mms/mmstu.c +++ vlc-1.1.0-rc2/modules/access/mms/mmstu.c @@ -1570,6 +1570,7 @@ static void *KeepAliveThread( void *p_da msleep( 10 * CLOCK_FREQ ); } assert(0); + return NULL; /* dead code, but the compiler can't know */ } static void KeepAliveStart( access_t *p_access ) Index: vlc-1.1.0-rc2/modules/control/netsync.c =================================================================== --- vlc-1.1.0-rc2.orig/modules/control/netsync.c +++ vlc-1.1.0-rc2/modules/control/netsync.c @@ -209,6 +209,7 @@ static void *Master(void *handle) : "non-IPv4", /*date*/ 0); #endif } + return NULL; /* dead code, but the compiler does not know */ } static void *Slave(void *handle) @@ -268,6 +269,7 @@ static void *Slave(void *handle) wait: msleep(INTF_IDLE_SLEEP); } + return NULL; /* dead code, but the compiler can't know */ } static int InputEvent(vlc_object_t *object, char const *cmd, Index: vlc-1.1.0-rc2/modules/control/signals.c =================================================================== --- vlc-1.1.0-rc2.orig/modules/control/signals.c +++ vlc-1.1.0-rc2/modules/control/signals.c @@ -129,4 +129,5 @@ static void *SigThread (void *data) pthread_sigmask (SIG_UNBLOCK, &set, NULL); for (;;) pause (); + return NULL; /* dead code, but the compiler can't know */ } Index: vlc-1.1.0-rc2/modules/demux/live555.cpp =================================================================== --- vlc-1.1.0-rc2.orig/modules/demux/live555.cpp +++ vlc-1.1.0-rc2/modules/demux/live555.cpp @@ -1898,6 +1898,7 @@ static void* TimeoutPrevention( void *p_ msleep (((int64_t)p_timeout->p_sys->i_timeout - 2) * CLOCK_FREQ); } assert(0); /* dead code */ + return NULL; /* dead code, but the compiler can't know */ } /***************************************************************************** Index: vlc-1.1.0-rc2/modules/stream_out/rtp.c =================================================================== --- vlc-1.1.0-rc2.orig/modules/stream_out/rtp.c +++ vlc-1.1.0-rc2/modules/stream_out/rtp.c @@ -1680,6 +1680,7 @@ static void *rtp_listen_thread( void *da } assert( 0 ); + return NULL; /* dead code, but the compiler can't know */ } Index: vlc-1.1.0-rc2/src/modules/cache.c =================================================================== --- vlc-1.1.0-rc2.orig/src/modules/cache.c +++ vlc-1.1.0-rc2/src/modules/cache.c @@ -313,6 +313,7 @@ static int dummy_callback (vlc_object_t { (void) obj; (void)name; (void)oldval; (void)newval; (void)data; assert (0); + return 0; /* dead code, but the compiler can't know */ }