From bd215fbf33c6ba54a3d21944107d5dcdaff17c4c Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Thu, 15 Jun 2017 18:28:13 +0900 Subject: [PATCH] suppress warning on Jetson TK1 --- modules/cudaarithm/src/cuda/absdiff_scalar.cu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/cudaarithm/src/cuda/absdiff_scalar.cu b/modules/cudaarithm/src/cuda/absdiff_scalar.cu index 01770a5f23..0955e40c8b 100644 --- a/modules/cudaarithm/src/cuda/absdiff_scalar.cu +++ b/modules/cudaarithm/src/cuda/absdiff_scalar.cu @@ -119,10 +119,9 @@ void absDiffScalar(const GpuMat& src, cv::Scalar val, bool, GpuMat& dst, const G }; const int sdepth = src.depth(); - const int ddepth = dst.depth(); const int cn = src.channels(); - CV_DbgAssert( sdepth <= CV_64F && ddepth <= CV_64F && cn <= 4 && src.type() == dst.type()); + CV_DbgAssert( sdepth <= CV_64F && cn <= 4 && src.type() == dst.type()); const func_t func = funcs[sdepth][cn - 1]; if (!func)