From 3013b469fe72141840107d173485212a71c3e6d4 Mon Sep 17 00:00:00 2001 From: Vladimir Bystricky Date: Fri, 6 Dec 2013 14:21:51 +0400 Subject: [PATCH] Add check for depths of destination and source image. Fix warning C4127. --- modules/imgproc/src/smooth.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 64780316c..7791a0279 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();