Fix clang warnings

This commit is contained in:
Benau 2022-03-31 11:55:23 +08:00
parent 9c7fb99e53
commit 1c99ba2562

View File

@ -486,7 +486,7 @@ public:
writeDNA();
//if we didn't pre-allocate a buffer, we need to create a contiguous buffer now
int mysize = 0;
//int mysize = 0;
if (!m_totalSize)
{
if (m_buffer)
@ -498,14 +498,14 @@ public:
unsigned char* currentPtr = m_buffer;
writeHeader(m_buffer);
currentPtr += BT_HEADER_LENGTH;
mysize+=BT_HEADER_LENGTH;
//mysize+=BT_HEADER_LENGTH;
for (int i=0;i< m_chunkPtrs.size();i++)
{
int curLength = sizeof(btChunk)+m_chunkPtrs[i]->m_length;
memcpy(currentPtr,m_chunkPtrs[i], curLength);
btAlignedFree(m_chunkPtrs[i]);
currentPtr+=curLength;
mysize+=curLength;
//mysize+=curLength;
}
}