aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-11-03 08:29:07 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-03 10:51:28 -0500
commit12e4db4790b1bd2b7ec70eb2a1386c00fc683740 (patch)
treea2d75943fdf3979e4247fd51795cd8d2a2a0e2a4 /tools/perf
parentb0ef07324310d66f660a311d4a8d669eda74f801 (diff)
perf probe: Annotate variable initialization
Annotate away this false positive warning on older GCCs: cc1: warnings being treated as errors builtin-probe.c: In function ‘parse_probe_event’: builtin-probe.c:72: warning: ‘nc’ is used uninitialized in this function Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Masami Hiramatsu <mhiramat@redhat.com> LKML-Reference: <1257254947-16789-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c
index a99a366230ab..81245238e341 100644
--- a/tools/perf/builtin-probe.c
+++ b/tools/perf/builtin-probe.c
@@ -69,7 +69,7 @@ static struct {
69static void parse_probe_point(char *arg, struct probe_point *pp) 69static void parse_probe_point(char *arg, struct probe_point *pp)
70{ 70{
71 char *ptr, *tmp; 71 char *ptr, *tmp;
72 char c, nc; 72 char c, nc = 0;
73 /* 73 /*
74 * <Syntax> 74 * <Syntax>
75 * perf probe SRC:LN 75 * perf probe SRC:LN