[gegl] opencl: silence gcc about a minor C90 warning
- From: Téo Mazars <teom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] opencl: silence gcc about a minor C90 warning
- Date: Sun, 17 Nov 2013 13:23:24 +0000 (UTC)
commit 5b73127ccd10884a9167f383ac956fe3fc321ce0
Author: Téo Mazars <teomazars gmail com>
Date: Sun Nov 17 14:21:23 2013 +0100
opencl: silence gcc about a minor C90 warning
the less noise, the better
gegl/opencl/gegl-cl-init.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index f6eb0a9..3cc26ab 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -533,12 +533,12 @@ gegl_cl_init_load_device_info (cl_platform_id platform,
}
else
{
- if (!requested_device_type)
- requested_device_type = CL_DEVICE_TYPE_DEFAULT;
-
cl_platform_id *platforms = NULL;
cl_uint num_platforms = 0;
+ if (!requested_device_type)
+ requested_device_type = CL_DEVICE_TYPE_DEFAULT;
+
err = gegl_clGetPlatformIDs (0, NULL, &num_platforms);
if (err != CL_SUCCESS)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]