mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -258,7 +258,6 @@ void IfStmtNode::propagateSwitchExpr(ExprNode *left, bool string)
|
|||
|
||||
U32 IfStmtNode::compileStmt(CodeStream &codeStream, U32 ip)
|
||||
{
|
||||
U32 start = ip;
|
||||
U32 endifIp, elseIp;
|
||||
addBreakLine(codeStream);
|
||||
|
||||
|
|
@ -340,7 +339,6 @@ U32 LoopStmtNode::compileStmt(CodeStream &codeStream, U32 ip)
|
|||
addBreakLine(codeStream);
|
||||
codeStream.pushFixScope(true);
|
||||
|
||||
U32 start = ip;
|
||||
if(initExpr)
|
||||
ip = initExpr->compile(codeStream, ip, TypeReqNone);
|
||||
|
||||
|
|
@ -1565,8 +1563,6 @@ U32 FunctionDeclStmtNode::compileStmt(CodeStream &codeStream, U32 ip)
|
|||
|
||||
CodeBlock::smInFunction = false;
|
||||
|
||||
|
||||
U32 start = ip;
|
||||
codeStream.emit(OP_FUNC_DECL);
|
||||
codeStream.emitSTE(fnName);
|
||||
codeStream.emitSTE(nameSpace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue