fixes for the newly added gcc warning keys
This commit is contained in:
@@ -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 << "]");
|
||||
|
Reference in New Issue
Block a user