All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérémie Galarneau" <jeremie.galarneau@efficios.com>
To: lttng-dev@lists.lttng.org
Subject: [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning
Date: Fri,  5 May 2017 11:52:07 -0400	[thread overview]
Message-ID: <20170505155207.22687-1-jeremie.galarneau__33200.6352291957$1493999539$gmane$org@efficios.com> (raw)

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

             reply	other threads:[~2017-05-05 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 15:52 Jérémie Galarneau [this message]
     [not found] <20170505155207.22687-1-jeremie.galarneau@efficios.com>
2017-05-05 16:03 ` [PATCH lttng-ust] Clean-up: remove unused variables to silence gcc warning Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20170505155207.22687-1-jeremie.galarneau__33200.6352291957$1493999539$gmane$org@efficios.com' \
    --to=jeremie.galarneau@efficios.com \
    --cc=lttng-dev@lists.lttng.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.