mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Suppress warning when compiling deprecated OpenCL function on GNU compilers.
This commit is contained in:
parent
1eca49f40b
commit
d34e7eca60
@ -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…
Reference in New Issue
Block a user