Skip to content

Commit

Permalink
perf_event: Fix compile error
Browse files Browse the repository at this point in the history
Fix:

 cc1: warnings being treated as errors
 builtin-probe.c: In function 'cmd_probe':
 builtin-probe.c:163: error: unused variable 'fd'

Signed-off-by: Xiao Guangrong <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
[ v2: use NO_LIBDWARF instead of __used ]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Xiao Guangrong authored and Ingo Molnar committed Dec 2, 2009
1 parent c19e33a commit bdad0db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/perf/builtin-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ static const struct option options[] = {

int cmd_probe(int argc, const char **argv, const char *prefix __used)
{
int i, j, fd, ret;
int i, j, ret;
#ifndef NO_LIBDWARF
int fd;
#endif
struct probe_point *pp;

argc = parse_options(argc, argv, options, probe_usage,
Expand Down

0 comments on commit bdad0db

Please sign in to comment.