diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-09-24 22:20:28 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-25 06:45:59 -0400 |
commit | af9da88f14cbe6882b13492b59b3363682427b4d (patch) | |
tree | 78f8fb0d2a998fc3823bf8f5d8baff9ac6074904 | |
parent | b1ac754b67b5a875d63bee880f60ccb0c6bd8899 (diff) |
perf test: Fix build failure
The commit 6a6cd11d4e57 ("perf test: Add test for the sched tracepoint
format fields") added following build error:
CC builtin-test.o
builtin-test.c: In function ‘perf_evsel__test_field’:
builtin-test.c:1216:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
builtin-test.c: In function ‘perf_evsel__tp_sched_test’:
builtin-test.c:1242:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [builtin-test.o] Error 1
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1348539628-3821-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c index 32caf13cfe01..78b47a75a7c9 100644 --- a/tools/perf/builtin-test.c +++ b/tools/perf/builtin-test.c | |||
@@ -1233,7 +1233,7 @@ static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name, | |||
1233 | ret = -1; | 1233 | ret = -1; |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | return 0; | 1236 | return ret; |
1237 | } | 1237 | } |
1238 | 1238 | ||
1239 | static int perf_evsel__tp_sched_test(void) | 1239 | static int perf_evsel__tp_sched_test(void) |
@@ -1286,7 +1286,7 @@ static int perf_evsel__tp_sched_test(void) | |||
1286 | if (perf_evsel__test_field(evsel, "target_cpu", 4, true)) | 1286 | if (perf_evsel__test_field(evsel, "target_cpu", 4, true)) |
1287 | ret = -1; | 1287 | ret = -1; |
1288 | 1288 | ||
1289 | return 0; | 1289 | return ret; |
1290 | } | 1290 | } |
1291 | 1291 | ||
1292 | static struct test { | 1292 | static struct test { |