From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755555AbdJIWcc (ORCPT ); Mon, 9 Oct 2017 18:32:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:50590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754644AbdJIWcb (ORCPT ); Mon, 9 Oct 2017 18:32:31 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B6E7218BB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 9 Oct 2017 18:32:28 -0400 From: Steven Rostedt To: Michael Sartain Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] trace-cmd: Remove unused view_width variable Message-ID: <20171009183228.59982786@gandalf.local.home> In-Reply-To: <20170812173047.840-6-mikesart@fastmail.com> References: <20170812173047.840-1-mikesart@fastmail.com> <20170812173047.840-6-mikesart@fastmail.com> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 12 Aug 2017 11:30:47 -0600 Michael Sartain wrote: This is an annoying warning, but I've kept from doing this because it reminds me that I have an idea to actually use that variable someday. But I've just been procrastinating on doing that. ;-) -- Steve > Signed-off-by: Michael Sartain > --- > trace-graph.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/trace-graph.c b/trace-graph.c > index 1db342f..2c49549 100644 > --- a/trace-graph.c > +++ b/trace-graph.c > @@ -1263,7 +1263,6 @@ static void draw_info_box(struct graph_info *ginfo, const gchar *buffer, > gint width, height; > GdkPixmap *pix; > static GdkGC *pix_bg; > - gint view_width; > gint view_start; > > if (!pix_bg) { > @@ -1284,7 +1283,6 @@ static void draw_info_box(struct graph_info *ginfo, const gchar *buffer, > height += PLOT_BOARDER * 2; > > view_start = gtk_adjustment_get_value(ginfo->hadj); > - view_width = gtk_adjustment_get_page_size(ginfo->hadj); > if (x > view_start + width) > x -= width; >