[PATCH perf 4/4] perf tests: Delete mis-indented dead code that causes build failure with gcc 6
From: Ben Hutchings
Date: Tue Jan 19 2016 - 16:33:58 EST
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@xxxxxxxxxxxxxxx>
---
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;
}
Attachment:
signature.asc
Description: Digital signature