mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/6] perf newt: Initialize choice variable
@ 2010-03-25 22:58 Arnaldo Carvalho de Melo
  2010-03-25 22:58 ` [PATCH 2/6] perf symbols: Pass the mmap parameters instead of using mmap_event Arnaldo Carvalho de Melo
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-03-25 22:58 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Arnaldo Carvalho de Melo,
	Frédéric Weisbecker, Mike Galbraith, Peter Zijlstra,
	Paul Mackerras

From: Arnaldo Carvalho de Melo <acme@redhat.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@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.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


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

end of thread, other threads:[~2010-03-26 12:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 22:58 [PATCH 1/6] perf newt: Initialize choice variable Arnaldo Carvalho de Melo
2010-03-25 22:58 ` [PATCH 2/6] perf symbols: Pass the mmap parameters instead of using mmap_event Arnaldo Carvalho de Melo
2010-03-25 22:58 ` [PATCH 3/6] perf symbols: Move map related routines to map.c Arnaldo Carvalho de Melo
2010-03-25 22:58 ` [PATCH 4/6] perf tools: Move __used from perf.h to linux/compiler.h Arnaldo Carvalho de Melo
2010-03-25 22:59 ` [PATCH 5/6] perf symbols: Move hex2u64 and strxfrchar to symbol.c Arnaldo Carvalho de Melo
2010-03-25 22:59 ` [PATCH 6/6] perf record: zero mmap_array[][][] fixing segfault Arnaldo Carvalho de Melo
2010-03-26 12:57   ` [tip:perf/core] perf record: Zero out mmap_array to fix segfault tip-bot for Zhang, Yanmin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome