From: Zdenek Kabelac Date: Wed, 30 Mar 2011 12:48:16 +0000 (+0000) Subject: Keep noreturn attribute for lvm_thread_fn X-Git-Tag: v2_02_91~955 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=81e269fe153f05b5e3a53273d5d42be01fb8716e;p=lvm2.git Keep noreturn attribute for lvm_thread_fn Even thought my gcc seems to not need it, as it's deduced from pthread_exit(), keep it here for older compiler to avoid getting warnings. --- diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index d3ba50795..d50213e69 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -132,7 +132,7 @@ static int check_all_clvmds_running(struct local_client *client); static int local_rendezvous_callback(struct local_client *thisfd, char *buf, int len, const char *csid, struct local_client **new_client); -static void *lvm_thread_fn(void *); +static void *lvm_thread_fn(void *) __attribute__((noreturn)); static int add_to_lvmqueue(struct local_client *client, struct clvm_header *msg, int msglen, const char *csid); static int distribute_command(struct local_client *thisfd);