diff options
author | Luben Tuikov <luben.tuikov@amd.com> | 2019-12-05 21:05:13 -0500 |
---|---|---|
committer | Luben Tuikov <luben.tuikov@amd.com> | 2020-01-08 13:18:50 -0500 |
commit | cb3d067587189f17abb5861ef645bc2655b5d376 (patch) | |
tree | 1c4c9fed941f79e54adf78c66120edcda597af9b /tests/amdgpu/syncobj_tests.c | |
parent | 9ebfac15a5c443e847b432765e3b3aa35f74c6f1 (diff) | |
download | external_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.tar.gz external_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.tar.bz2 external_libdrm-cb3d067587189f17abb5861ef645bc2655b5d376.zip |
tests/amdgpu: Fix various warnings (v2)
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.
v2: Fix compilation.
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Diffstat (limited to 'tests/amdgpu/syncobj_tests.c')
-rw-r--r-- | tests/amdgpu/syncobj_tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |