From: Andreas Ă–man Date: Sun, 16 Aug 2009 09:15:40 +0000 (+0000) Subject: Add return NULL; at end of thread loops. X-Git-Tag: 2.12~528 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72ff81e25c295eafa7ae25713d117f1cb1c0ada5;p=thirdparty%2Ftvheadend.git Add return NULL; at end of thread loops. gcc4.4 seem to think that this code is reachable but it isn't --- diff --git a/src/iptv_input.c b/src/iptv_input.c index 221d8b066..b58df9b56 100644 --- a/src/iptv_input.c +++ b/src/iptv_input.c @@ -158,6 +158,7 @@ iptv_thread(void *aux) } pthread_mutex_unlock(&iptv_recvmutex); } + return NULL; } diff --git a/src/transports.c b/src/transports.c index df47a9820..50f772ecf 100644 --- a/src/transports.c +++ b/src/transports.c @@ -832,6 +832,7 @@ transport_saver(void *aux) pthread_mutex_unlock(&global_lock); pthread_mutex_lock(&pending_save_mutex); } + return NULL; }