
cherokee at cherokee-project
Jun 28, 2009, 11:42 AM
Views: 105
Permalink
|
|
[3399] cherokee/trunk/cherokee: Fixes a few gcc compilation warnings.
|
|
Revision: 3399 http://svn.cherokee-project.com/changeset/3399 Author: alo Date: 2009-06-28 20:42:51 +0200 (Sun, 28 Jun 2009) Log Message: ----------- Fixes a few gcc compilation warnings. Modified Paths: -------------- cherokee/trunk/cherokee/common-internal.h cherokee/trunk/cherokee/handler_cgi.c cherokee/trunk/cherokee/main.c cherokee/trunk/cherokee/server.c cherokee/trunk/cherokee/thread.c Modified: cherokee/trunk/cherokee/common-internal.h =================================================================== --- cherokee/trunk/cherokee/common-internal.h 2009-06-27 21:52:22 UTC (rev 3398) +++ cherokee/trunk/cherokee/common-internal.h 2009-06-28 18:42:51 UTC (rev 3399) @@ -219,5 +219,15 @@ # define SEM_A 0200 #endif +/* GCC specific + */ +#ifndef NORETURN +# ifdef __GNUC__ +# define NORETURN __attribute__((noreturn)) +# else +# define NORETURN +# endif +#endif + #endif /* CHEROKEE_COMMON_INTERNAL_H */ Modified: cherokee/trunk/cherokee/handler_cgi.c =================================================================== --- cherokee/trunk/cherokee/handler_cgi.c 2009-06-27 21:52:22 UTC (rev 3398) +++ cherokee/trunk/cherokee/handler_cgi.c 2009-06-28 18:42:51 UTC (rev 3399) @@ -500,7 +500,7 @@ } -static void +static NORETURN void manage_child_cgi_process (cherokee_handler_cgi_t *cgi, int pipe_cgi[2], int pipe_server[2]) { /* Child process Modified: cherokee/trunk/cherokee/main.c =================================================================== --- cherokee/trunk/cherokee/main.c 2009-06-27 21:52:22 UTC (rev 3398) +++ cherokee/trunk/cherokee/main.c 2009-06-28 18:42:51 UTC (rev 3399) @@ -482,8 +482,8 @@ free (envp); } -static void * -spawn_thread_func (void *param) +static NORETURN void * +spawn_thread_func (void *param) { int re; struct sembuf so; @@ -500,8 +500,6 @@ } while (re < 0 && errno == EINTR); do_spawn (); } - - return NULL; } Modified: cherokee/trunk/cherokee/server.c =================================================================== --- cherokee/trunk/cherokee/server.c 2009-06-27 21:52:22 UTC (rev 3398) +++ cherokee/trunk/cherokee/server.c 2009-06-28 18:42:51 UTC (rev 3399) @@ -1704,7 +1704,7 @@ } -void +NORETURN void cherokee_server_handle_panic (cherokee_server_t *srv) { int re; Modified: cherokee/trunk/cherokee/thread.c =================================================================== --- cherokee/trunk/cherokee/thread.c 2009-06-27 21:52:22 UTC (rev 3398) +++ cherokee/trunk/cherokee/thread.c 2009-06-28 18:42:51 UTC (rev 3399) @@ -79,7 +79,7 @@ #ifdef HAVE_PTHREAD -static void * +static NORETURN void * thread_routine (void *data) { cherokee_thread_t *thread = THREAD(data);
|