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

Jérémie Galarneau jeremie.galarneau at efficios.com
Fri May 5 15:52:07 UTC 2017


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



More information about the lttng-dev mailing list