diff options
author | Namhyung Kim <namhyung@gmail.com> | 2012-04-11 16:04:59 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-11 16:07:18 -0400 |
commit | a31b7cc083b1d3d15bd475729fc4471685ebc5f6 (patch) | |
tree | fffd01e61123e58b0844584f98221c762708127c /tools/perf/util | |
parent | 024e6c9747bb274c9d744ad52a987a0ebec528a6 (diff) |
perf annotate: Fix a build error
CC util/annotate.o
util/annotate.c: In function symbol__annotate:
util/annotate.c:87:16: error: parsed_line may be used uninitialized in this function [-Werror=maybe-uninitialized]
util/annotate.c:211:22: note: parsed_line was declared here
cc1: all warnings being treated as errors
make: *** [util/annotate.o] Error 1
make: *** Waiting for unfinished jobs....
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ashay Rane <ashay.rane@tacc.utexas.edu>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/87ty0tlv4i.fsf@dasan.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/annotate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 9fc4126e54db..1e7fd52bd29d 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -226,6 +226,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, struct map *map, | |||
226 | *c = 0; | 226 | *c = 0; |
227 | 227 | ||
228 | line_ip = -1; | 228 | line_ip = -1; |
229 | parsed_line = line; | ||
229 | 230 | ||
230 | /* | 231 | /* |
231 | * Strip leading spaces: | 232 | * Strip leading spaces: |
@@ -255,8 +256,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, struct map *map, | |||
255 | offset = -1; | 256 | offset = -1; |
256 | else | 257 | else |
257 | parsed_line = tmp2 + 1; | 258 | parsed_line = tmp2 + 1; |
258 | } else | 259 | } |
259 | parsed_line = line; | ||
260 | 260 | ||
261 | objdump_line = objdump_line__new(offset, parsed_line, privsize); | 261 | objdump_line = objdump_line__new(offset, parsed_line, privsize); |
262 | free(line); | 262 | free(line); |