minor warning fix
This commit is contained in:
@@ -282,6 +282,11 @@ namespace cv { namespace gpu { namespace device
|
|||||||
cv::gpu::device::transform((DevMem2D_<T>)src, (DevMem2D_<D>)dst, op, WithOutMask(), stream);
|
cv::gpu::device::transform((DevMem2D_<T>)src, (DevMem2D_<D>)dst, op, WithOutMask(), stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined __clang__
|
||||||
|
# pragma clang diagnostic push
|
||||||
|
# pragma clang diagnostic ignored "-Wmissing-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
void convert_gpu(DevMem2Db src, int sdepth, DevMem2Db dst, int ddepth, double alpha, double beta, cudaStream_t stream)
|
void convert_gpu(DevMem2Db src, int sdepth, DevMem2Db dst, int ddepth, double alpha, double beta, cudaStream_t stream)
|
||||||
{
|
{
|
||||||
typedef void (*caller_t)(DevMem2Db src, DevMem2Db dst, double alpha, double beta, cudaStream_t stream);
|
typedef void (*caller_t)(DevMem2Db src, DevMem2Db dst, double alpha, double beta, cudaStream_t stream);
|
||||||
@@ -318,4 +323,8 @@ namespace cv { namespace gpu { namespace device
|
|||||||
|
|
||||||
func(src, dst, alpha, beta, stream);
|
func(src, dst, alpha, beta, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined __clang__
|
||||||
|
# pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
}}} // namespace cv { namespace gpu { namespace device
|
}}} // namespace cv { namespace gpu { namespace device
|
||||||
|
@@ -1199,10 +1199,6 @@ namespace
|
|||||||
|
|
||||||
void setTo(GpuMat& m, Scalar s, const GpuMat& mask) const
|
void setTo(GpuMat& m, Scalar s, const GpuMat& mask) const
|
||||||
{
|
{
|
||||||
NppiSize sz;
|
|
||||||
sz.width = m.cols;
|
|
||||||
sz.height = m.rows;
|
|
||||||
|
|
||||||
if (mask.empty())
|
if (mask.empty())
|
||||||
{
|
{
|
||||||
if (s[0] == 0.0 && s[1] == 0.0 && s[2] == 0.0 && s[3] == 0.0)
|
if (s[0] == 0.0 && s[1] == 0.0 && s[2] == 0.0 && s[3] == 0.0)
|
||||||
|
Reference in New Issue
Block a user