You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Another try to cope with warnings under gcc 8.2.
This commit is contained in:
@ -1141,7 +1141,8 @@ void ExtentMap::loadVersion4(ifstream& in)
|
||||
in.read((char*) &flNumElements, sizeof(int));
|
||||
idbassert(emNumElements > 0);
|
||||
|
||||
memset(fExtentMap, 0, fEMShminfo->allocdSize);
|
||||
void *fExtentMapPtr = static_cast<void*>(fExtentMap);
|
||||
memset(fExtentMapPtr, 0, fEMShminfo->allocdSize);
|
||||
fEMShminfo->currentSize = 0;
|
||||
|
||||
// init the free list
|
||||
@ -1226,7 +1227,8 @@ void ExtentMap::loadVersion4(IDBDataFile* in)
|
||||
throw runtime_error("ExtentMap::loadVersion4(): read failed. Check the error log.");
|
||||
}
|
||||
|
||||
memset(fExtentMap, 0, fEMShminfo->allocdSize);
|
||||
void *fExtentMapPtr = static_cast<void*>(fExtentMap);
|
||||
memset(fExtentMapPtr, 0, fEMShminfo->allocdSize);
|
||||
fEMShminfo->currentSize = 0;
|
||||
|
||||
// init the free list
|
||||
|
@ -189,7 +189,8 @@ void MasterSegmentTable::makeMSTSegment()
|
||||
|
||||
void MasterSegmentTable::initMSTData()
|
||||
{
|
||||
memset(fShmDescriptors, 0, MSTshmsize);
|
||||
void *dp = static_cast<void*>(&fShmDescriptors);
|
||||
memset(dp, 0, MSTshmsize);
|
||||
}
|
||||
|
||||
MSTEntry* MasterSegmentTable::getTable_read(int num, bool block) const
|
||||
|
Reference in New Issue
Block a user