Skip to content

Commit 5551717

Browse files
olsajiriacmel
authored andcommitted
perf tests mmap-basic: Remove unused variable to address clang 15 warning
A clang 15 build reveal several unused-but-set variables, removing the 'foo' variable in tests/mmap-basic.o object to address one of those cases. Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 5149a42 commit 5551717

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/perf/tests/mmap-basic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ static int test__basic_mmap(struct test_suite *test __maybe_unused, int subtest
114114

115115
for (i = 0; i < nsyscalls; ++i)
116116
for (j = 0; j < expected_nr_events[i]; ++j) {
117-
int foo = syscalls[i]();
118-
++foo;
117+
syscalls[i]();
119118
}
120119

121120
md = &evlist->mmap[0];

0 commit comments

Comments
 (0)