From: Mathieu Desnoyers Date: Wed, 20 Mar 2013 19:27:41 +0000 (-0400) Subject: Cleanup: work-around clang unused result warning X-Git-Tag: v2.2.0-rc1~46 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=257ecc17e3214106b7e788cda75fec667cc5cc26;p=lttng-ust.git Cleanup: work-around clang unused result warning Not useful for CHAN_WARN_ON() macro. Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/frontend_types.h b/libringbuffer/frontend_types.h index 70e7bb7d..b44783f7 100644 --- a/libringbuffer/frontend_types.h +++ b/libringbuffer/frontend_types.h @@ -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 */