You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-24 22:42:05 +03:00
Fix ignored qualifiers warnings (-Wignored-qualifiers)
This commit is contained in:
@ -61,8 +61,8 @@ int CommandDMLPackage::write(messageqcpp::ByteStream& bytestream)
|
||||
bytestream << fTimeZone;
|
||||
bytestream << fTableName;
|
||||
bytestream << fTableOid;
|
||||
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsAutocommitOn);
|
||||
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsBatchInsert);
|
||||
bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsAutocommitOn);
|
||||
bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsBatchInsert);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
@ -67,9 +67,9 @@ int InsertDMLPackage::write(messageqcpp::ByteStream& bytestream)
|
||||
bytestream << (uint8_t)fLogending;
|
||||
|
||||
bytestream << fTableOid;
|
||||
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsInsertSelect);
|
||||
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsBatchInsert);
|
||||
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsAutocommitOn);
|
||||
bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsInsertSelect);
|
||||
bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsBatchInsert);
|
||||
bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsAutocommitOn);
|
||||
|
||||
if (fTable != 0)
|
||||
{
|
||||
|
@ -190,7 +190,7 @@ void AggregateColumn::serialize(messageqcpp::ByteStream& b) const
|
||||
b << fTimeZone;
|
||||
//b << fAlias;
|
||||
b << fTableAlias;
|
||||
b << static_cast<const ByteStream::doublebyte>(fAsc);
|
||||
b << static_cast<ByteStream::doublebyte>(fAsc);
|
||||
|
||||
if (fConstCol.get() == 0)
|
||||
b << (uint8_t) ObjectReader::NULL_CLASS;
|
||||
|
@ -480,7 +480,7 @@ void CalpontSelectExecutionPlan::serialize(messageqcpp::ByteStream& b) const
|
||||
b << fVerID;
|
||||
b << fTraceFlags;
|
||||
b << fStatementID;
|
||||
b << static_cast<const ByteStream::byte>(fDistinct);
|
||||
b << static_cast<ByteStream::byte>(fDistinct);
|
||||
b << static_cast<uint8_t>(fOverrideLargeSideEstimate);
|
||||
|
||||
// for union
|
||||
@ -500,8 +500,8 @@ void CalpontSelectExecutionPlan::serialize(messageqcpp::ByteStream& b) const
|
||||
|
||||
b << (uint64_t)fLimitStart;
|
||||
b << (uint64_t)fLimitNum;
|
||||
b << static_cast<const ByteStream::byte>(fHasOrderBy);
|
||||
b << static_cast<const ByteStream::byte>(fSpecHandlerProcessed);
|
||||
b << static_cast<ByteStream::byte>(fHasOrderBy);
|
||||
b << static_cast<ByteStream::byte>(fSpecHandlerProcessed);
|
||||
b << reinterpret_cast<uint32_t>(fOrderByThreads);
|
||||
|
||||
b << static_cast<uint32_t>(fSelectSubList.size());
|
||||
|
@ -411,7 +411,7 @@ void CalpontSystemCatalog::TableAliasName::serialize(messageqcpp::ByteStream& b)
|
||||
b << table;
|
||||
b << alias;
|
||||
b << view;
|
||||
b << static_cast<const ByteStream::doublebyte>(fisColumnStore);
|
||||
b << static_cast<ByteStream::doublebyte>(fisColumnStore);
|
||||
}
|
||||
|
||||
void CalpontSystemCatalog::TableAliasName::unserialize(messageqcpp::ByteStream& b)
|
||||
|
@ -308,7 +308,7 @@ void ConstantColumn::serialize(messageqcpp::ByteStream& b) const
|
||||
//b << fAlias;
|
||||
b << fData;
|
||||
b << fTimeZone;
|
||||
b << static_cast<const ByteStream::doublebyte>(fReturnAll);
|
||||
b << static_cast<ByteStream::doublebyte>(fReturnAll);
|
||||
b << (uint64_t)fResult.intVal;
|
||||
b << fResult.uintVal;
|
||||
b << fResult.doubleVal;
|
||||
|
@ -83,8 +83,8 @@ void ExistsFilter::serialize(messageqcpp::ByteStream& b) const
|
||||
else
|
||||
b << static_cast<ObjectReader::id_t>(ObjectReader::NULL_CLASS);
|
||||
|
||||
b << static_cast<const ByteStream::doublebyte>(fNotExists);
|
||||
b << static_cast<const ByteStream::doublebyte>(fCorrelated);
|
||||
b << static_cast<ByteStream::doublebyte>(fNotExists);
|
||||
b << static_cast<ByteStream::doublebyte>(fCorrelated);
|
||||
}
|
||||
|
||||
void ExistsFilter::unserialize(messageqcpp::ByteStream& b)
|
||||
|
@ -365,7 +365,7 @@ void SimpleColumn::serialize(messageqcpp::ByteStream& b) const
|
||||
b << fData;
|
||||
b << fTableAlias;
|
||||
b << (uint32_t) fSequence;
|
||||
b << static_cast<const ByteStream::doublebyte>(fisColumnStore);
|
||||
b << static_cast<ByteStream::doublebyte>(fisColumnStore);
|
||||
}
|
||||
|
||||
void SimpleColumn::unserialize(messageqcpp::ByteStream& b)
|
||||
|
@ -53,7 +53,7 @@ void ColumnBufferSection::write(const void* const data, int nRows)
|
||||
{
|
||||
//Casting void * to unsigned char * without modifying the constness
|
||||
const unsigned char* const tData =
|
||||
static_cast<const unsigned char* const>(data);
|
||||
static_cast<const unsigned char* >(data);
|
||||
|
||||
if (fCurrRowId + nRows + 1 > fEndRowId)
|
||||
{
|
||||
|
@ -444,12 +444,12 @@ int DbFileOp::writeVB( IDBDataFile* pFile, const OID oid, const uint64_t lbid )
|
||||
return NO_ERROR;
|
||||
|
||||
int rc;
|
||||
TxnID transId = getTransId();
|
||||
const TxnID transId = getTransId();
|
||||
|
||||
if (transId != ((TxnID)INVALID_NUM))
|
||||
{
|
||||
rc = BRMWrapper::getInstance()->writeVB( pFile,
|
||||
(const VER_t)transId,
|
||||
(VER_t)transId,
|
||||
oid, lbid, this );
|
||||
//@Bug 4671. The error is already logged by worker node.
|
||||
/* if (rc != NO_ERROR)
|
||||
|
Reference in New Issue
Block a user