X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfqueue-static.h;h=d7c359f39e46906b910b544f5ebebb68cc2d242d;hp=95294f91ca5799523a9882389b96cc872f3baf2b;hb=85b577030e0dd244ed2d42aa5196a088e1e64dbb;hpb=7106ddf86905188b9e92ee7000165c1af22f793e diff --git a/urcu/rculfqueue-static.h b/urcu/rculfqueue-static.h index 95294f9..d7c359f 100644 --- a/urcu/rculfqueue-static.h +++ b/urcu/rculfqueue-static.h @@ -86,7 +86,7 @@ void _cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu * * Now move tail (another enqueue might beat * us to it, that's fine). */ - uatomic_cmpxchg(&q->tail, tail, node); + (void) uatomic_cmpxchg(&q->tail, tail, node); rcu_read_unlock(); return; } else { @@ -94,7 +94,7 @@ void _cds_lfq_enqueue_rcu(struct cds_lfq_queue_rcu *q, struct cds_lfq_node_rcu * * Failure to append to current tail. Help moving tail * further and retry. */ - uatomic_cmpxchg(&q->tail, tail, next); + (void) uatomic_cmpxchg(&q->tail, tail, next); rcu_read_unlock(); continue; }