[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1269557941-15617-1-git-send-email-acme@infradead.org>
Date: Thu, 25 Mar 2010 19:58:56 -0300
From: Arnaldo Carvalho de Melo <acme@...radead.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: linux-kernel@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Frédéric Weisbecker <fweisbec@...il.com>,
Mike Galbraith <efault@....de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>
Subject: [PATCH 1/6] perf newt: Initialize choice variable
From: Arnaldo Carvalho de Melo <acme@...hat.com>
cc1: warnings being treated as errors
util/newt.c: In function ‘perf_session__browse_hists’:
util/newt.c:442: error: ‘choice’ may be used uninitialized in this function
Note: Ingo, you may want to fold this with:
[PATCH v2 6/6] perf report: Pass the DSO to 'perf annotate'
Cc: Frédéric Weisbecker <fweisbec@...il.com>
Cc: Mike Galbraith <efault@....de>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Paul Mackerras <paulus@...ba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/newt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c
index 12572b5..e99bcc8 100644
--- a/tools/perf/util/newt.c
+++ b/tools/perf/util/newt.c
@@ -439,7 +439,7 @@ void perf_session__browse_hists(struct rb_root *hists, u64 session_total,
while (1) {
char annotate[512];
const char *options[2];
- int nr_options = 0, choice;
+ int nr_options = 0, choice = 0;
newtFormRun(form, &es);
if (es.reason == NEWT_EXIT_HOTKEY) {
--
1.6.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists