diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-03 13:17:28 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-03 13:17:28 +0200 |
commit | 029e5b1636d0511ef143af3a20c83c48e44c03f3 (patch) | |
tree | 19cf4b47176a3224a03ca88bf70d6ccb02317199 /tools/perf | |
parent | 30d7a77dd5a9720430af72f6f62f5156fe073e55 (diff) | |
download | blackbird-op-linux-029e5b1636d0511ef143af3a20c83c48e44c03f3.tar.gz blackbird-op-linux-029e5b1636d0511ef143af3a20c83c48e44c03f3.zip |
perf report: Annotate variable initialization
Certain versions of GCC dont see the initialization that is done here:
builtin-report.c: In function ‘__cmd_report’:
builtin-report.c:1038: warning: ‘syms’ may be used uninitialized in this function
So annotate it with a NULL initialization.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 283773d91aa0..fa937f5c3c39 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -1035,7 +1035,7 @@ resolve_callchain(struct thread *thread, struct map *map __used, struct ip_callchain *chain, struct hist_entry *entry) { u64 context = PERF_CONTEXT_MAX; - struct symbol **syms; + struct symbol **syms = NULL; unsigned int i; if (callchain) { |