added macro for denoting region for suppression of "Wdeprecated-declarations"

This commit is contained in:
Ilya Lavrenov
2014-04-10 17:19:02 +04:00
parent 6bfbcf02cb
commit 19d470749b
4 changed files with 29 additions and 4 deletions

View File

@@ -4466,7 +4466,9 @@ struct Image2D::Impl
else
#endif
{
CV_SUPPRESS_DEPRECATED_START
handle = clCreateImage2D(context, CL_MEM_READ_WRITE, &format, src.cols, src.rows, 0, NULL, &err);
CV_SUPPRESS_DEPRECATED_END
}
CV_OclDbgAssert(err == CL_SUCCESS);