[gegl] cl: fixing warnings



commit 57c8938ba9d3de9ce981b07af77db32b2633819d
Author: Victor Oliveira <victormatheus gmail com>
Date:   Fri Apr 6 22:26:45 2012 -0300

    cl: fixing warnings

 gegl/opencl/gegl-cl-init.c |    2 --
 gegl/opencl/gegl-cl-init.h |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 6cc67aa..a5ac2ef 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -381,8 +381,6 @@ gegl_cl_compile_and_build (const char *program_source, const char *kernel_name[]
 
           CL_SAFE_CALL( errcode = gegl_clGetKernelWorkGroupInfo (cl_data->kernel[i], gegl_cl_get_device(), CL_KERNEL_WORK_GROUP_SIZE,
                                                                  sizeof(size_t), &cl_data->work_group_size[i], NULL) );
-
-          g_printf ("%s: %lu (%s)\n", kernel_name[i], cl_data->work_group_size[i], gegl_cl_errstring(errcode));
         }
 
       g_hash_table_insert(cl_program_hash, g_strdup (program_source), (void*)cl_data);
diff --git a/gegl/opencl/gegl-cl-init.h b/gegl/opencl/gegl-cl-init.h
index 0000d81..f937a2c 100644
--- a/gegl/opencl/gegl-cl-init.h
+++ b/gegl/opencl/gegl-cl-init.h
@@ -53,7 +53,7 @@ size_t gegl_cl_get_iter_height (void);
 
 typedef struct
 {
-  cl_program *program;
+  cl_program program;
   cl_kernel  *kernel;
   size_t     *work_group_size;
 } gegl_cl_run_data;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]