[lttng-dev] [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri May 5 16:03:30 UTC 2017


Merged, thanks!

Mathieu

----- On May 5, 2017, at 11:52 AM, Jeremie Galarneau jeremie.galarneau at efficios.com wrote:

> GCC 6.3.1 warns that two variables (write_offset and consumed_cur)
> in lib_ring_buffer_snapshot_sample_positions() are unused.
> 
> Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
> ---
> libringbuffer/ring_buffer_frontend.c | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/libringbuffer/ring_buffer_frontend.c
> b/libringbuffer/ring_buffer_frontend.c
> index 9b166852..9ecdc157 100644
> --- a/libringbuffer/ring_buffer_frontend.c
> +++ b/libringbuffer/ring_buffer_frontend.c
> @@ -1323,7 +1323,6 @@ int lib_ring_buffer_snapshot_sample_positions(
> {
> 	struct channel *chan;
> 	const struct lttng_ust_lib_ring_buffer_config *config;
> -	unsigned long consumed_cur, write_offset;
> 
> 	chan = shmp(handle, buf->backend.chan);
> 	if (!chan)
> --
> 2.12.2

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list