mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-13 12:52:31 +00:00
wthread.c: avoid 1 warning
* exec/wthread.c (worker_thread): Mark function as "noreturn". git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1965 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
1447cfd8e9
commit
9b29d93bba
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2005 MontaVista Software, Inc.
|
||||
* Copyright (c) 2006 Red Hat, Inc.
|
||||
* Copyright (c) 2006, 2009 Red Hat, Inc.
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -65,6 +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) {
|
||||
struct thread_data *thread_data = (struct thread_data *)thread_data_in;
|
||||
struct worker_thread *worker_thread =
|
||||
@ -95,7 +96,6 @@ void *worker_thread (void *thread_data_in) {
|
||||
}
|
||||
pthread_mutex_unlock (&worker_thread->done_work_mutex);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
int worker_thread_group_init (
|
||||
|
Loading…
Reference in New Issue
Block a user