Prev: PM / Hibernate: split snapshot_write_next
Next: [PATCH 2/6] perf symbols: Pass the mmap parameters instead of using mmap_event
From: Arnaldo Carvalho de Melo on 25 Mar 2010 19:00 From: Arnaldo Carvalho de Melo <acme(a)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(a)gmail.com> Cc: Mike Galbraith <efault(a)gmx.de> Cc: Peter Zijlstra <a.p.zijlstra(a)chello.nl> Cc: Paul Mackerras <paulus(a)samba.org> Signed-off-by: Arnaldo Carvalho de Melo <acme(a)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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |