From d8a93addc87227dc5d4f6aa4cf79afb9b05c245b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 29 Jun 2015 16:47:39 -0400 Subject: [PATCH 1/1] Cleanup: cast poll delay return value to void Signed-off-by: Mathieu Desnoyers --- urcu/static/wfcqueue.h | 2 +- urcu/static/wfstack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.34.1