David Ahern a949fffb84 perf tools: Fix old GCC build error in 'get_srcline'
trace-event-parse.c:parse_proc_kallsyms()

    Old GCC (4.4.2) does not see through the code flow of get_srcline() and
gets confused about the status of 'file' and 'line':

    CC       /tmp/build/perf/util/srcline.o
  cc1: warnings being treated as errors
  util/srcline.c: In function ¿get_srcline¿:
  util/srcline.c:226: error: ¿file¿ may be used uninitialized in this function
  util/srcline.c:227: error: ¿line¿ may be used uninitialized in this function
  make[1]: *** [/tmp/build/perf/util/srcline.o] Error 1
  make: *** [install] Error 2
  make: Leaving directory `/home/acme/git/linux/tools/perf'
  [acme@fedora12 linux]$

Help out GCC by initializing 'file' and 'line'.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Link: http://lkml.kernel.org/n/tip-h8k7h49z3cndqgjdftkmm9f8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-10-14 10:28:52 -03:00
..
2013-09-11 10:09:32 -03:00
2011-02-16 13:30:48 +01:00
2013-03-25 16:13:26 -03:00
2012-02-13 23:17:40 -02:00
2012-12-09 08:46:07 -03:00
2013-09-11 10:09:32 -03:00
2013-09-11 10:09:32 -03:00
2013-08-07 17:35:26 -03:00
2013-08-07 17:35:26 -03:00
2013-03-13 17:00:33 -03:00
2012-05-17 12:32:54 -03:00
2013-08-27 11:05:53 -03:00
2013-08-27 11:05:53 -03:00
2013-09-11 10:09:32 -03:00
2013-07-08 17:59:07 -03:00