Suppress warning when compiling deprecated OpenCL function on GNU compilers.

pull/865/head
peng xiao 12 years ago
parent 1eca49f40b
commit d34e7eca60
  1. 7
      modules/ocl/src/mcwutil.cpp

@ -179,6 +179,10 @@ namespace cv
else
#endif
{
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
texture = clCreateImage2D(
(cl_context)mat.clCxt->oclContext(),
CL_MEM_READ_WRITE,
@ -188,6 +192,9 @@ namespace cv
0,
NULL,
&err);
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}
size_t origin[] = { 0, 0, 0 };
size_t region[] = { mat.cols, mat.rows, 1 };

Loading…
Cancel
Save