From: Mathieu Desnoyers Date: Mon, 29 Jun 2015 20:33:43 +0000 (-0400) Subject: Cleanup: cast poll delay return value to void X-Git-Tag: v0.9.0~55 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c060776f6fac830bb34e2b1db2f7676560ef2ea9;p=userspace-rcu.git Cleanup: cast poll delay return value to void Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-defer-impl.h b/urcu-defer-impl.h index c762400..2cff807 100644 --- a/urcu-defer-impl.h +++ b/urcu-defer-impl.h @@ -148,7 +148,7 @@ static void mutex_lock_defer(pthread_mutex_t *mutex) while ((ret = pthread_mutex_trylock(mutex)) != 0) { if (ret != EBUSY && ret != EINTR) urcu_die(ret); - poll(NULL,0,10); + (void) poll(NULL,0,10); } #endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */ } @@ -373,7 +373,7 @@ static void *thr_defer(void *args) */ wait_defer(); /* Sleeping after wait_defer to let many callbacks enqueue */ - poll(NULL,0,100); /* wait for 100ms */ + (void) poll(NULL,0,100); /* wait for 100ms */ rcu_defer_barrier(); }