From 364796d1e59a7bc22d75bccefd9de0f2c79f9b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 29 Sep 2021 16:05:11 +0200 Subject: [PATCH] btSerializer: Remove unused but set variable Fixes a Clang/Emscripten warning. --- src/LinearMath/btSerializer.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/LinearMath/btSerializer.h b/src/LinearMath/btSerializer.h index 6b624122a..781421080 100644 --- a/src/LinearMath/btSerializer.h +++ b/src/LinearMath/btSerializer.h @@ -499,7 +499,6 @@ public: writeDNA(); //if we didn't pre-allocate a buffer, we need to create a contiguous buffer now - int mysize = 0; if (!m_totalSize) { if (m_buffer) @@ -511,14 +510,12 @@ public: unsigned char* currentPtr = m_buffer; writeHeader(m_buffer); currentPtr += 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; } }