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>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-11-03 11:29:07 -02:00 committed by Ingo Molnar
parent b0ef073243
commit 12e4db4790

View file

@ -69,7 +69,7 @@ static struct {
static void parse_probe_point(char *arg, struct probe_point *pp) static void parse_probe_point(char *arg, struct probe_point *pp)
{ {
char *ptr, *tmp; char *ptr, *tmp;
char c, nc; char c, nc = 0;
/* /*
* <Syntax> * <Syntax>
* perf probe SRC:LN * perf probe SRC:LN