Skip to content
  • Vinson Lee's avatar
    cl-api-create-context-from-type: Remove unused variables. · 7c93f596
    Vinson Lee authored
    
    
    This patch fixes these GCC warnings.
    
    create-context-from-type.c: In function ‘piglit_cl_test’:
    create-context-from-type.c:173:24: warning: variable ‘invalid_platform_context_properties’ set but not used [-Wunused-but-set-variable]
      cl_context_properties invalid_platform_context_properties[] = {
                            ^
    create-context-from-type.c:156:13: warning: unused variable ‘cl_ctx’ [-Wunused-variable]
      cl_context cl_ctx;
                 ^
    create-context-from-type.c:155:9: warning: unused variable ‘errNo’ [-Wunused-variable]
      cl_int errNo;
             ^
    
    Signed-off-by: default avatarVinson Lee <vlee@freedesktop.org>
    Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
    7c93f596