fixes for the newly added gcc warning keys
This commit is contained in:
@@ -1136,7 +1136,7 @@ NCVStatus NCVBroxOpticalFlow(const NCVBroxOpticalFlowDescriptor desc,
|
||||
ptrVNew->ptr(), dstSize, ns * sizeof (float), dstROI, 1.0f/scale_factor, 1.0f/scale_factor, nppStBicubic) );
|
||||
|
||||
ScaleVector(ptrVNew->ptr(), ptrVNew->ptr(), 1.0f/scale_factor, ns * nh, stream);
|
||||
ncvAssertCUDALastErrorReturn(NCV_CUDA_ERROR);
|
||||
ncvAssertCUDALastErrorReturn((int)NCV_CUDA_ERROR);
|
||||
|
||||
cv::gpu::device::swap<FloatVector*>(ptrU, ptrUNew);
|
||||
cv::gpu::device::swap<FloatVector*>(ptrV, ptrVNew);
|
||||
@@ -1145,17 +1145,17 @@ NCVStatus NCVBroxOpticalFlow(const NCVBroxOpticalFlowDescriptor desc,
|
||||
}
|
||||
|
||||
// end of warping iterations
|
||||
ncvAssertCUDAReturn(cudaStreamSynchronize(stream), NCV_CUDA_ERROR);
|
||||
ncvAssertCUDAReturn(cudaStreamSynchronize(stream), (int)NCV_CUDA_ERROR);
|
||||
|
||||
ncvAssertCUDAReturn( cudaMemcpy2DAsync
|
||||
(uOut.ptr(), uOut.pitch(), ptrU->ptr(),
|
||||
kSourcePitch, kSourceWidth*sizeof(float), kSourceHeight, cudaMemcpyDeviceToDevice, stream), NCV_CUDA_ERROR );
|
||||
kSourcePitch, kSourceWidth*sizeof(float), kSourceHeight, cudaMemcpyDeviceToDevice, stream), (int)NCV_CUDA_ERROR );
|
||||
|
||||
ncvAssertCUDAReturn( cudaMemcpy2DAsync
|
||||
(vOut.ptr(), vOut.pitch(), ptrV->ptr(),
|
||||
kSourcePitch, kSourceWidth*sizeof(float), kSourceHeight, cudaMemcpyDeviceToDevice, stream), NCV_CUDA_ERROR );
|
||||
kSourcePitch, kSourceWidth*sizeof(float), kSourceHeight, cudaMemcpyDeviceToDevice, stream), (int)NCV_CUDA_ERROR );
|
||||
|
||||
ncvAssertCUDAReturn(cudaStreamSynchronize(stream), NCV_CUDA_ERROR);
|
||||
ncvAssertCUDAReturn(cudaStreamSynchronize(stream), (int)NCV_CUDA_ERROR);
|
||||
}
|
||||
|
||||
return NCV_SUCCESS;
|
||||
|
@@ -687,6 +687,7 @@ struct applyHaarClassifierAnchorParallelFunctor
|
||||
template<class TList>
|
||||
void call(TList tl)
|
||||
{
|
||||
(void)tl;
|
||||
applyHaarClassifierAnchorParallel <
|
||||
Loki::TL::TypeAt<TList, 0>::Result::value,
|
||||
Loki::TL::TypeAt<TList, 1>::Result::value,
|
||||
@@ -796,6 +797,7 @@ struct applyHaarClassifierClassifierParallelFunctor
|
||||
template<class TList>
|
||||
void call(TList tl)
|
||||
{
|
||||
(void)tl;
|
||||
applyHaarClassifierClassifierParallel <
|
||||
Loki::TL::TypeAt<TList, 0>::Result::value,
|
||||
Loki::TL::TypeAt<TList, 1>::Result::value,
|
||||
@@ -876,6 +878,7 @@ struct initializeMaskVectorFunctor
|
||||
template<class TList>
|
||||
void call(TList tl)
|
||||
{
|
||||
(void)tl;
|
||||
initializeMaskVector <
|
||||
Loki::TL::TypeAt<TList, 0>::Result::value,
|
||||
Loki::TL::TypeAt<TList, 1>::Result::value >
|
||||
|
@@ -854,6 +854,7 @@ static NCVStatus drawRectsWrapperDevice(T *d_dst,
|
||||
T color,
|
||||
cudaStream_t cuStream)
|
||||
{
|
||||
(void)cuStream;
|
||||
ncvAssertReturn(d_dst != NULL && d_rects != NULL, NCV_NULL_PTR);
|
||||
ncvAssertReturn(dstWidth > 0 && dstHeight > 0, NCV_DIMENSIONS_INVALID);
|
||||
ncvAssertReturn(dstStride >= dstWidth, NCV_INVALID_STEP);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*M///////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
|
||||
//
|
||||
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
|
||||
//
|
||||
// By downloading, copying, installing or using the software you agree to this license.
|
||||
// If you do not agree to this license, do not download, install,
|
||||
// copy or use the software.
|
||||
@@ -461,7 +461,7 @@ public:
|
||||
|
||||
virtual NcvBool isInitialized(void) const = 0;
|
||||
virtual NcvBool isCounting(void) const = 0;
|
||||
|
||||
|
||||
virtual NCVMemoryType memType(void) const = 0;
|
||||
virtual Ncv32u alignment(void) const = 0;
|
||||
virtual size_t maxSize(void) const = 0;
|
||||
@@ -585,11 +585,11 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
ncvAssertReturn(dst._length * sizeof(T) >= howMuch &&
|
||||
ncvAssertReturn(dst._length * sizeof(T) >= howMuch &&
|
||||
this->_length * sizeof(T) >= howMuch &&
|
||||
howMuch > 0, NCV_MEM_COPY_ERROR);
|
||||
}
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
(dst._ptr != NULL || dst._memtype == NCVMemoryTypeNone), NCV_NULL_PTR);
|
||||
|
||||
NCVStatus ncvStat = NCV_SUCCESS;
|
||||
@@ -766,18 +766,18 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
ncvAssertReturn(dst._pitch * dst._height >= howMuch &&
|
||||
ncvAssertReturn(dst._pitch * dst._height >= howMuch &&
|
||||
this->_pitch * this->_height >= howMuch &&
|
||||
howMuch > 0, NCV_MEM_COPY_ERROR);
|
||||
}
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
(dst._ptr != NULL || dst._memtype == NCVMemoryTypeNone), NCV_NULL_PTR);
|
||||
|
||||
NCVStatus ncvStat = NCV_SUCCESS;
|
||||
if (this->_memtype != NCVMemoryTypeNone)
|
||||
{
|
||||
ncvStat = memSegCopyHelper(dst._ptr, dst._memtype,
|
||||
this->_ptr, this->_memtype,
|
||||
ncvStat = memSegCopyHelper(dst._ptr, dst._memtype,
|
||||
this->_ptr, this->_memtype,
|
||||
howMuch, cuStream);
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ public:
|
||||
{
|
||||
ncvAssertReturn(this->width() >= roi.width && this->height() >= roi.height &&
|
||||
dst.width() >= roi.width && dst.height() >= roi.height, NCV_MEM_COPY_ERROR);
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) &&
|
||||
(dst._ptr != NULL || dst._memtype == NCVMemoryTypeNone), NCV_NULL_PTR);
|
||||
|
||||
NCVStatus ncvStat = NCV_SUCCESS;
|
||||
@@ -802,7 +802,7 @@ public:
|
||||
return ncvStat;
|
||||
}
|
||||
|
||||
T &at(Ncv32u x, Ncv32u y) const
|
||||
T& at(Ncv32u x, Ncv32u y) const
|
||||
{
|
||||
NcvBool bOutRange = (x >= this->_width || y >= this->_height);
|
||||
ncvAssertPrintCheck(!bOutRange, "Error addressing matrix at [" << x << ", " << y << "]");
|
||||
|
@@ -211,6 +211,7 @@ namespace NCVRuntimeTemplateBool
|
||||
|
||||
static void call(Func &functor, std::vector<int> &templateParams)
|
||||
{
|
||||
(void)templateParams;
|
||||
functor.call(TList());
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user