[Piglit] [PATCH] cl-api-create-context: Remove unused variables.

Vinson Lee vlee at freedesktop.org
Thu Oct 22 22:46:27 PDT 2015


create-context.c:141:15: warning: unused variable 'num_platform_ids' [-Wunused-variable]
        unsigned int num_platform_ids;
                     ^
create-context.c:139:7: warning: unused variable 'found_invalid_platform' [-Wunused-variable]
        bool found_invalid_platform = false;
             ^
create-context.c:140:18: warning: unused variable 'platform_ids' [-Wunused-variable]
        cl_platform_id* platform_ids;
                        ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/cl/api/create-context.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/cl/api/create-context.c b/tests/cl/api/create-context.c
index 551f8a2..4999bbf 100644
--- a/tests/cl/api/create-context.c
+++ b/tests/cl/api/create-context.c
@@ -136,9 +136,6 @@ piglit_cl_test(const int argc,
 	cl_device_id* devices;
 	cl_context cl_ctx;
 
-	bool found_invalid_platform = false;
-	cl_platform_id* platform_ids;
-	unsigned int num_platform_ids;
 	cl_platform_id invalid_platform_id = NULL;
 
 	//TODO: test also CL_CONTEXT_INTEROP_USER_SYNC
-- 
2.6.2



More information about the Piglit mailing list