Messages in this thread Patch in this message | | | Date | Tue, 19 Jan 2016 21:33:12 +0000 | From | Ben Hutchings <> | Subject | [PATCH perf 4/4] perf tests: Delete mis-indented dead code that causes build failure with gcc 6 |
| |
gcc 6 complains:
arch/x86/tests/intel-cqm.c: In function 'spawn': arch/x86/tests/intel-cqm.c:21:3: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] sleep(5); ^~~~~
arch/x86/tests/intel-cqm.c:20:2: note: ...this 'while' clause, but it is not while(1); ^~~~~
Fixes: 035827e9f2bd ("perf tests: Add Intel CQM test") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> --- tools/perf/arch/x86/tests/intel-cqm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c index d28c1b6..bd123a1 100644 --- a/tools/perf/arch/x86/tests/intel-cqm.c +++ b/tools/perf/arch/x86/tests/intel-cqm.c @@ -17,8 +17,9 @@ static pid_t spawn(void) if (pid) return pid; - while(1); - sleep(5); + while (1) + ; + return 0; } [unhandled content-type:application/pgp-signature] | |