From: Mathieu Desnoyers Date: Wed, 1 Jul 2015 14:03:39 +0000 (-0400) Subject: Cleanup: cast poll delay return value to void X-Git-Tag: v0.9.0~49 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8999a9ee7abe868caf8f5327d8b2e8b8b44ee87d;p=userspace-rcu.git Cleanup: cast poll delay return value to void Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.c b/urcu.c index 6f5b1e0..94d1131 100644 --- a/urcu.c +++ b/urcu.c @@ -149,7 +149,7 @@ static void mutex_lock(pthread_mutex_t *mutex) _CMM_STORE_SHARED(URCU_TLS(rcu_reader).need_mb, 0); cmm_smp_mb(); } - poll(NULL,0,10); + (void) poll(NULL, 0, 10); } #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */ } @@ -217,7 +217,7 @@ static void force_mb_all_readers(void) cds_list_for_each_entry(index, ®istry, node) { while (CMM_LOAD_SHARED(index->need_mb)) { pthread_kill(index->tid, SIGRCU); - poll(NULL, 0, 1); + (void) poll(NULL, 0, 1); } } cmm_smp_mb(); /* read ->need_mb before ending the barrier */