more VS2012 L4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:51:36 +01:00
parent 502e346eb6
commit 2844ab6912
20 changed files with 30 additions and 8 deletions

View file

@ -506,6 +506,7 @@ void* String::StringData::operator new( size_t size, U32 len )
void String::StringData::operator delete(void *ptr)
{
StringData* sub = static_cast<StringData *>(ptr);
TORQUE_UNUSED(sub);
AssertFatal( sub->mRefCount == 0, "StringData::delete() - invalid refcount" );
#ifdef TORQUE_DEBUG

View file

@ -436,6 +436,7 @@ bool ZipSubWStream::_write(const U32 numBytes, const void *pBuffer)
}
S32 retVal = deflate(m_pZipStream, Z_NO_FLUSH);
TORQUE_UNUSED(retVal);
AssertFatal(retVal != Z_BUF_ERROR, "ZipSubWStream::_write: invalid buffer");
}