Skip to content

Commit 12e4db4

Browse files
acmelIngo Molnar
authored andcommitted
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 <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent b0ef073 commit 12e4db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/builtin-probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static struct {
6969
static void parse_probe_point(char *arg, struct probe_point *pp)
7070
{
7171
char *ptr, *tmp;
72-
char c, nc;
72+
char c, nc = 0;
7373
/*
7474
* <Syntax>
7575
* perf probe SRC:LN

0 commit comments

Comments
 (0)