From fb1634583f3ba22c67cad0df7022b6ac48a40c56 Mon Sep 17 00:00:00 2001 From: Luben Tuikov Date: Thu, 5 Dec 2019 21:05:13 -0500 Subject: tests/amdgpu: Fix various warnings This patch fixes the following warnings: -Wformat= -Wmaybe-uninitialized -Wmisleading-indentation -Wstringop-truncation -Wunused-function -Wunused-variable It also removes forward declarations and moves global functions to the bottom, keeping locals at the top, in ras_tests.c. Signed-off-by: Luben Tuikov --- tests/amdgpu/syncobj_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/amdgpu/syncobj_tests.c') diff --git a/tests/amdgpu/syncobj_tests.c b/tests/amdgpu/syncobj_tests.c index 869ed88e..3a7b38eb 100644 --- a/tests/amdgpu/syncobj_tests.c +++ b/tests/amdgpu/syncobj_tests.c @@ -96,7 +96,7 @@ static int syncobj_command_submission_helper(uint32_t syncobj_handle, bool struct amdgpu_cs_fence fence_status; amdgpu_bo_list_handle bo_list; amdgpu_va_handle va_handle; - uint32_t expired, flags; + uint32_t expired; int i, r; uint64_t seq_no; static uint32_t *ptr; -- cgit v1.2.3