Skip to contentSkip to conversation

Clean-up: remove unused variables to silence gcc warning

PATCH Mathieu Desnoyers 1 participant 1 message May 5, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw

Merged, thanks!

Mathieu

Quoted 23 lines · ----- On May 5, 2017, at 11:52 AM, Jeremie Galarneau…

GCC 6.3.1 warns that two variables (write_offset and consumed_cur) in lib_ring_buffer_snapshot_sample_positions() are unused.

---
libringbuffer/ring_buffer_frontend.c | 1 -

1 file changed, 1 deletion(-)
libringbuffer/ring_buffer_frontend.c +0 -2
index 9b166852..9ecdc157 100644
@@ -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