[gegl] cl: clean up some compiler warnings



commit dc9345ff9c027643e83a8e3d65038dea8dc5835a
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Tue Mar 20 13:27:01 2012 +0000

    cl: clean up some compiler warnings

 gegl/buffer/gegl-buffer-access.c |    1 +
 gegl/buffer/gegl-buffer.c        |    1 +
 gegl/opencl/gegl-cl-color.c      |    1 +
 gegl/opencl/gegl-cl-init.c       |    5 +++--
 gegl/opencl/gegl-cl.h            |    1 +
 5 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 7f88646..601d1cd 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -39,6 +39,7 @@
 #include "gegl-buffer-index.h"
 #include "gegl-tile-backend.h"
 #include "gegl-buffer-iterator.h"
+#include "gegl-buffer-cl-cache.h"
 
 #if 0
 static inline void
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 8464a08..af2f7d9 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -69,6 +69,7 @@
 #include "gegl-id-pool.h"
 #include "gegl-buffer-index.h"
 #include "gegl-config.h"
+#include "gegl-buffer-cl-cache.h"
 
 /* #define GEGL_BUFFER_DEBUG_ALLOCATIONS */
 
diff --git a/gegl/opencl/gegl-cl-color.c b/gegl/opencl/gegl-cl-color.c
index 1c0c4ff..71cca06 100644
--- a/gegl/opencl/gegl-cl-color.c
+++ b/gegl/opencl/gegl-cl-color.c
@@ -1,4 +1,5 @@
 #include "gegl.h"
+#include <glib/gprintf.h>
 #include "gegl-cl-color.h"
 #include "gegl-cl-init.h"
 
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 2f846d6..2cfbcf6 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -5,6 +5,7 @@
 #include <gmodule.h>
 #include <string.h>
 #include <stdio.h>
+#include <glib/gprintf.h>
 
 #include "gegl-cl-color.h"
 
@@ -247,8 +248,8 @@ gegl_cl_init (GError **error)
       g_printf("[OpenCL] Version:%s\n",             cl_state.platform_version);
       g_printf("[OpenCL] Extensions:%s\n",          cl_state.platform_ext);
       g_printf("[OpenCL] Default Device Name:%s\n", cl_state.device_name);
-      g_printf("[OpenCL] Max Alloc: %lu bytes\n",   cl_state.max_mem_alloc);
-      g_printf("[OpenCL] Local Mem: %lu bytes\n",   cl_state.local_mem_size);
+      g_printf("[OpenCL] Max Alloc: %lu bytes\n",   (unsigned long)cl_state.max_mem_alloc);
+      g_printf("[OpenCL] Local Mem: %lu bytes\n",   (unsigned long)cl_state.local_mem_size);
 
       while (cl_state.max_image_width * cl_state.max_image_height * 16 > cl_state.max_mem_alloc)
         {
diff --git a/gegl/opencl/gegl-cl.h b/gegl/opencl/gegl-cl.h
index 009be8a..c660967 100644
--- a/gegl/opencl/gegl-cl.h
+++ b/gegl/opencl/gegl-cl.h
@@ -4,5 +4,6 @@
 #include "gegl-cl-types.h"
 #include "gegl-cl-init.h"
 #include "gegl-cl-color.h"
+#include "glib/gprintf.h"
 
 #endif



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