Clean-up: remove unused variables to silence gcc warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 5 May 2017 15:52:07 +0000 (11:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 5 May 2017 16:01:14 +0000 (12:01 -0400)
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@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/ring_buffer_frontend.c

index 9b16685251ee1e1d8da49801c1f11ca61ec2060a..9ecdc1579631339e7deb2c4bed9d9e1bb79a7d75 100644 (file)
@@ -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)
This page took 0.026508 seconds and 4 git commands to generate.