From: Mathieu Desnoyers Date: Mon, 29 Jun 2015 20:47:39 +0000 (-0400) Subject: Cleanup: cast poll delay return value to void X-Git-Tag: v0.9.0~53 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=d8a93addc87227dc5d4f6aa4cf79afb9b05c245b;hp=124bd5c7002312888e811e209f59fc623eb2defc Cleanup: cast poll delay return value to void Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/static/wfcqueue.h b/urcu/static/wfcqueue.h index 48b2625..7c9d548 100644 --- a/urcu/static/wfcqueue.h +++ b/urcu/static/wfcqueue.h @@ -221,7 +221,7 @@ ___cds_wfcq_busy_wait(int *attempt, int blocking) if (!blocking) return 1; if (++(*attempt) >= WFCQ_ADAPT_ATTEMPTS) { - poll(NULL, 0, WFCQ_WAIT); /* Wait for 10ms */ + (void) poll(NULL, 0, WFCQ_WAIT); /* Wait for 10ms */ *attempt = 0; } else { caa_cpu_relax(); diff --git a/urcu/static/wfstack.h b/urcu/static/wfstack.h index 261ff2c..2666b0e 100644 --- a/urcu/static/wfstack.h +++ b/urcu/static/wfstack.h @@ -160,7 +160,7 @@ ___cds_wfs_node_sync_next(struct cds_wfs_node *node, int blocking) if (!blocking) return CDS_WFS_WOULDBLOCK; if (++attempt >= CDS_WFS_ADAPT_ATTEMPTS) { - poll(NULL, 0, CDS_WFS_WAIT); /* Wait for 10ms */ + (void) poll(NULL, 0, CDS_WFS_WAIT); /* Wait for 10ms */ attempt = 0; } else { caa_cpu_relax();