1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-27 21:01:50 +03:00

Fix ignored qualifiers warnings (-Wignored-qualifiers)

This commit is contained in:
Alexey Antipovsky
2020-11-10 18:11:14 +00:00
parent 4813838df8
commit f4a6294c95
10 changed files with 17 additions and 17 deletions

View File

@ -61,8 +61,8 @@ int CommandDMLPackage::write(messageqcpp::ByteStream& bytestream)
bytestream << fTimeZone; bytestream << fTimeZone;
bytestream << fTableName; bytestream << fTableName;
bytestream << fTableOid; bytestream << fTableOid;
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsAutocommitOn); bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsAutocommitOn);
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsBatchInsert); bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsBatchInsert);
return retval; return retval;
} }

View File

@ -67,9 +67,9 @@ int InsertDMLPackage::write(messageqcpp::ByteStream& bytestream)
bytestream << (uint8_t)fLogending; bytestream << (uint8_t)fLogending;
bytestream << fTableOid; bytestream << fTableOid;
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsInsertSelect); bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsInsertSelect);
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsBatchInsert); bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsBatchInsert);
bytestream << static_cast<const messageqcpp::ByteStream::byte>(fIsAutocommitOn); bytestream << static_cast<messageqcpp::ByteStream::byte>(fIsAutocommitOn);
if (fTable != 0) if (fTable != 0)
{ {

View File

@ -190,7 +190,7 @@ void AggregateColumn::serialize(messageqcpp::ByteStream& b) const
b << fTimeZone; b << fTimeZone;
//b << fAlias; //b << fAlias;
b << fTableAlias; b << fTableAlias;
b << static_cast<const ByteStream::doublebyte>(fAsc); b << static_cast<ByteStream::doublebyte>(fAsc);
if (fConstCol.get() == 0) if (fConstCol.get() == 0)
b << (uint8_t) ObjectReader::NULL_CLASS; b << (uint8_t) ObjectReader::NULL_CLASS;

View File

@ -480,7 +480,7 @@ void CalpontSelectExecutionPlan::serialize(messageqcpp::ByteStream& b) const
b << fVerID; b << fVerID;
b << fTraceFlags; b << fTraceFlags;
b << fStatementID; b << fStatementID;
b << static_cast<const ByteStream::byte>(fDistinct); b << static_cast<ByteStream::byte>(fDistinct);
b << static_cast<uint8_t>(fOverrideLargeSideEstimate); b << static_cast<uint8_t>(fOverrideLargeSideEstimate);
// for union // for union
@ -500,8 +500,8 @@ void CalpontSelectExecutionPlan::serialize(messageqcpp::ByteStream& b) const
b << (uint64_t)fLimitStart; b << (uint64_t)fLimitStart;
b << (uint64_t)fLimitNum; b << (uint64_t)fLimitNum;
b << static_cast<const ByteStream::byte>(fHasOrderBy); b << static_cast<ByteStream::byte>(fHasOrderBy);
b << static_cast<const ByteStream::byte>(fSpecHandlerProcessed); b << static_cast<ByteStream::byte>(fSpecHandlerProcessed);
b << reinterpret_cast<uint32_t>(fOrderByThreads); b << reinterpret_cast<uint32_t>(fOrderByThreads);
b << static_cast<uint32_t>(fSelectSubList.size()); b << static_cast<uint32_t>(fSelectSubList.size());

View File

@ -411,7 +411,7 @@ void CalpontSystemCatalog::TableAliasName::serialize(messageqcpp::ByteStream& b)
b << table; b << table;
b << alias; b << alias;
b << view; b << view;
b << static_cast<const ByteStream::doublebyte>(fisColumnStore); b << static_cast<ByteStream::doublebyte>(fisColumnStore);
} }
void CalpontSystemCatalog::TableAliasName::unserialize(messageqcpp::ByteStream& b) void CalpontSystemCatalog::TableAliasName::unserialize(messageqcpp::ByteStream& b)

View File

@ -308,7 +308,7 @@ void ConstantColumn::serialize(messageqcpp::ByteStream& b) const
//b << fAlias; //b << fAlias;
b << fData; b << fData;
b << fTimeZone; b << fTimeZone;
b << static_cast<const ByteStream::doublebyte>(fReturnAll); b << static_cast<ByteStream::doublebyte>(fReturnAll);
b << (uint64_t)fResult.intVal; b << (uint64_t)fResult.intVal;
b << fResult.uintVal; b << fResult.uintVal;
b << fResult.doubleVal; b << fResult.doubleVal;

View File

@ -83,8 +83,8 @@ void ExistsFilter::serialize(messageqcpp::ByteStream& b) const
else else
b << static_cast<ObjectReader::id_t>(ObjectReader::NULL_CLASS); b << static_cast<ObjectReader::id_t>(ObjectReader::NULL_CLASS);
b << static_cast<const ByteStream::doublebyte>(fNotExists); b << static_cast<ByteStream::doublebyte>(fNotExists);
b << static_cast<const ByteStream::doublebyte>(fCorrelated); b << static_cast<ByteStream::doublebyte>(fCorrelated);
} }
void ExistsFilter::unserialize(messageqcpp::ByteStream& b) void ExistsFilter::unserialize(messageqcpp::ByteStream& b)

View File

@ -365,7 +365,7 @@ void SimpleColumn::serialize(messageqcpp::ByteStream& b) const
b << fData; b << fData;
b << fTableAlias; b << fTableAlias;
b << (uint32_t) fSequence; b << (uint32_t) fSequence;
b << static_cast<const ByteStream::doublebyte>(fisColumnStore); b << static_cast<ByteStream::doublebyte>(fisColumnStore);
} }
void SimpleColumn::unserialize(messageqcpp::ByteStream& b) void SimpleColumn::unserialize(messageqcpp::ByteStream& b)

View File

@ -53,7 +53,7 @@ void ColumnBufferSection::write(const void* const data, int nRows)
{ {
//Casting void * to unsigned char * without modifying the constness //Casting void * to unsigned char * without modifying the constness
const unsigned char* const tData = const unsigned char* const tData =
static_cast<const unsigned char* const>(data); static_cast<const unsigned char* >(data);
if (fCurrRowId + nRows + 1 > fEndRowId) if (fCurrRowId + nRows + 1 > fEndRowId)
{ {

View File

@ -444,12 +444,12 @@ int DbFileOp::writeVB( IDBDataFile* pFile, const OID oid, const uint64_t lbid )
return NO_ERROR; return NO_ERROR;
int rc; int rc;
TxnID transId = getTransId(); const TxnID transId = getTransId();
if (transId != ((TxnID)INVALID_NUM)) if (transId != ((TxnID)INVALID_NUM))
{ {
rc = BRMWrapper::getInstance()->writeVB( pFile, rc = BRMWrapper::getInstance()->writeVB( pFile,
(const VER_t)transId, (VER_t)transId,
oid, lbid, this ); oid, lbid, this );
//@Bug 4671. The error is already logged by worker node. //@Bug 4671. The error is already logged by worker node.
/* if (rc != NO_ERROR) /* if (rc != NO_ERROR)