Clean-up: remove unused variables to silence gcc warning
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedMerged, thanks!
Mathieu
Quoted 23 lines · ----- On May 5, 2017, at 11:52 AM, Jeremie Galarneau…
GCC 6.3.1 warns that two variables (
write_offsetandconsumed_cur) inlib_ring_buffer_snapshot_sample_positions()are unused.Signed-off-by Jérémie Galarneau <[email protected]>---
libringbuffer/ring_buffer_frontend.c| 1 -1 file changed, 1 deletion(-)libringbuffer/ring_buffer_frontend.c +0
-2@@ -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
Signature · 7 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev