From: Benjamin Jacobs Date: Sun, 2 Sep 2012 21:54:35 +0000 (+0200) Subject: Add missing return statements X-Git-Tag: collectd-5.0.5~10^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4c81ea6168518f40ff4a1d043692688bff5cc9e7;p=collectd.git Add missing return statements Fix gcc warn/error: no return statement in function returning non-void [-Werror=return-type] Signed-off-by: Sebastian Harl --- diff --git a/src/amqp.c b/src/amqp.c index 55d2a2ce..89284c81 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -641,6 +641,7 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ camqp_config_free (conf); pthread_exit (NULL); + return (NULL); } /* }}} void *camqp_subscribe_thread */ static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */ diff --git a/src/email.c b/src/email.c index 8fc5509f..5870ab1d 100644 --- a/src/email.c +++ b/src/email.c @@ -376,6 +376,7 @@ static void *collect (void *arg) } /* while (1) */ pthread_exit ((void *)0); + return ((void *) 0); } /* static void *collect (void *) */ static void *open_connection (void __attribute__((unused)) *arg) @@ -548,7 +549,9 @@ static void *open_connection (void __attribute__((unused)) *arg) pthread_cond_signal (&conn_available); } - pthread_exit ((void *)0); + + pthread_exit ((void *) 0); + return ((void *) 0); } /* static void *open_connection (void *) */ static int email_init (void)