Browse Source

Remove warnings from wthread.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2055 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 years ago
parent
commit
7070e8ab6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      exec/wthread.c

+ 2 - 2
exec/wthread.c

@@ -65,8 +65,7 @@ struct worker_thread {
 	struct thread_data thread_data;
 };
 
-void *worker_thread (void *thread_data_in) __attribute__((__noreturn__));
-void *worker_thread (void *thread_data_in) {
+static void *worker_thread (void *thread_data_in) {
 	struct thread_data *thread_data = (struct thread_data *)thread_data_in;
 	struct worker_thread *worker_thread =
 		(struct worker_thread *)thread_data->data;
@@ -96,6 +95,7 @@ void *worker_thread (void *thread_data_in) {
 		}
 		pthread_mutex_unlock (&worker_thread->done_work_mutex);
 	}
+	return (NULL);
 }
 
 int worker_thread_group_init (