mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
more VS2012 L4 warning fixes
This commit is contained in:
parent
502e346eb6
commit
2844ab6912
20 changed files with 30 additions and 8 deletions
|
|
@ -798,19 +798,17 @@ void checkPtr( void* ptr )
|
|||
AllocatedHeader* header = ( AllocatedHeader* ) *iter;
|
||||
if( header->getUserPtr() == ptr )
|
||||
{
|
||||
char buffer[ 1024 ];
|
||||
|
||||
#ifdef TORQUE_DEBUG_GUARD
|
||||
char buffer[ 1024 ];
|
||||
if( !checkGuard( *iter, true ) )
|
||||
{
|
||||
dSprintf( buffer, sizeof( buffer ), "0x%x is a valid heap pointer but has its guards corrupted", ptr );
|
||||
Platform::outputDebugString( buffer );
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
//dSprintf( buffer, sizeof( buffer ), "0x%x is a valid heap pointer", ptr );
|
||||
//Platform::outputDebugString( buffer );
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,11 @@
|
|||
#define TORQUE_USE_WINSOCK
|
||||
#include <errno.h>
|
||||
#include <winsock.h>
|
||||
|
||||
#ifndef EINPROGRESS
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#endif // EINPROGRESS
|
||||
|
||||
#define ioctl ioctlsocket
|
||||
|
||||
typedef int socklen_t;
|
||||
|
|
|
|||
|
|
@ -623,6 +623,7 @@ void Profiler::dump()
|
|||
{
|
||||
FileStream fws;
|
||||
bool success = fws.open(mDumpFileName, Torque::FS::File::Write);
|
||||
TORQUE_UNUSED(success);
|
||||
AssertFatal(success, "Cannot write profile dump to specified file!");
|
||||
char buffer[1024];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue