All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning
@ 2017-05-05 15:52 Jérémie Galarneau
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2017-05-05 15:52 UTC (permalink / raw)
  To: lttng-dev

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>
---
 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

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning
       [not found] <20170505155207.22687-1-jeremie.galarneau@efficios.com>
@ 2017-05-05 16:03 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2017-05-05 16:03 UTC (permalink / raw)
  To: Jeremie Galarneau; +Cc: lttng-dev

Merged, thanks!

Mathieu

----- On May 5, 2017, at 11:52 AM, Jeremie Galarneau jeremie.galarneau@efficios.com wrote:

> 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>
> ---
> 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

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-05 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05 15:52 [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning Jérémie Galarneau
     [not found] <20170505155207.22687-1-jeremie.galarneau@efficios.com>
2017-05-05 16:03 ` Mathieu Desnoyers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.