Cleanup: work-around clang unused result warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 20 Mar 2013 19:27:41 +0000 (15:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 20 Mar 2013 19:27:41 +0000 (15:27 -0400)
Not useful for CHAN_WARN_ON() macro.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/frontend_types.h

index 70e7bb7deb7f17de588f3743ed3430ce69174ece..b44783f713630a584e99e28bd6c6982f5bf08444 100644 (file)
@@ -166,7 +166,7 @@ void *channel_get_private(struct channel *chan)
                        uatomic_inc(&__chan->record_disabled);          \
                        WARN_ON(1);                                     \
                }                                                       \
-               _____ret;                                               \
+               _____ret = _____ret; /* For clang "unused result". */   \
        })
 
 #endif /* _LTTNG_RING_BUFFER_FRONTEND_TYPES_H */
This page took 0.025826 seconds and 4 git commands to generate.