From: Jérémie Galarneau Date: Fri, 5 May 2017 15:52:07 +0000 (-0400) Subject: Clean-up: remove unused variables to silence gcc warning X-Git-Tag: v2.10.0-rc1~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=57f3f0d01926509259754f92d00a9c1b146a87b7;p=lttng-ust.git Clean-up: remove unused variables to silence gcc warning 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 Signed-off-by: Mathieu Desnoyers --- 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)