diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 64780316ce..7791a0279f 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -714,7 +714,10 @@ static bool ocl_boxFilter( InputArray _src, OutputArray _dst, int ddepth, if (BLOCK_SIZE < kernelWorkGroupSize) return false; tryWorkItems = kernelWorkGroupSize; +#pragma warning( push ) +#pragma warning( disable : 4127 ) } while (true); +#pragma warning( pop ) _dst.create(sz, CV_MAKETYPE(ddepth, cn)); UMat dst = _dst.getUMat();