mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Addresses roughly half of the C4189 errors though the following methodologies:
1) truly unused vars removed 2) vars leading to remmed out code for debugging remmed in turn. left out: vars in macros.
This commit is contained in:
parent
b24bdfbc8b
commit
555610f69f
8 changed files with 9 additions and 15 deletions
|
|
@ -435,11 +435,12 @@ static void setFieldComponent( SimObject* object, StringTableEntry field, const
|
|||
|
||||
ConsoleValueRef CodeBlock::exec(U32 ip, const char *functionName, Namespace *thisNamespace, U32 argc, ConsoleValueRef *argv, bool noCalls, StringTableEntry packageName, S32 setFrame)
|
||||
{
|
||||
/*
|
||||
#ifdef TORQUE_DEBUG
|
||||
U32 stackStart = STR.mStartStackSize;
|
||||
U32 consoleStackStart = CSTK.mStackPos;
|
||||
#endif
|
||||
|
||||
*/
|
||||
//Con::printf("CodeBlock::exec(%s,%u)", functionName ? functionName : "??", ip);
|
||||
|
||||
static char traceBuffer[1024];
|
||||
|
|
@ -2244,12 +2245,12 @@ execFinished:
|
|||
}
|
||||
|
||||
decRefCount();
|
||||
|
||||
/*
|
||||
#ifdef TORQUE_DEBUG
|
||||
//AssertFatal(!(STR.mStartStackSize > stackStart), "String stack not popped enough in script exec");
|
||||
//AssertFatal(!(STR.mStartStackSize < stackStart), "String stack popped too much in script exec");
|
||||
#endif
|
||||
|
||||
*/
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue