Cleanup: remove unused value warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Mar 2011 21:55:30 +0000 (17:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Mar 2011 21:55:30 +0000 (17:55 -0400)
return value of cmpxchg is purposefully unused in
_cds_lfq_enqueue_rcu(). Cast it to (void) to remove the compiler
warning.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/rculfqueue-static.h

index 95294f91ca5799523a9882389b96cc872f3baf2b..d7c359f39e46906b910b544f5ebebb68cc2d242d 100644 (file)
@@ -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;
                }
This page took 0.025729 seconds and 4 git commands to generate.