mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
* BugFix: Clear some MSVC compiler warnings.
This commit is contained in:
parent
026409ed7f
commit
5d26dba7da
23 changed files with 24 additions and 111 deletions
|
|
@ -827,7 +827,6 @@ void SimXMLDocument::setObjectAttributes(const char* objectID)
|
|||
|
||||
char textbuf[1024];
|
||||
tinyxml2::XMLElement* field = m_qDocument->NewElement("Field");
|
||||
tinyxml2::XMLElement* group = m_qDocument->NewElement("FieldGroup");
|
||||
pElement->SetAttribute( "Name", pObject->getName() );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ void StmtNode::addBreakLine(CodeStream& code)
|
|||
|
||||
//------------------------------------------------------------
|
||||
|
||||
StmtNode::StmtNode()
|
||||
StmtNode::StmtNode() : dbgLineNumber(0)
|
||||
{
|
||||
next = NULL;
|
||||
dbgFileName = CodeBlock::smCurrentParser->getCurrentFile();
|
||||
|
|
@ -84,12 +84,12 @@ void StmtNode::setPackage(StringTableEntry)
|
|||
{
|
||||
}
|
||||
|
||||
void StmtNode::append(StmtNode* next)
|
||||
void StmtNode::append(StmtNode* appended)
|
||||
{
|
||||
StmtNode* walk = this;
|
||||
while (walk->next)
|
||||
walk = walk->next;
|
||||
walk->next = next;
|
||||
walk->next = appended;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -717,7 +717,7 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
TelDebugger->pushStackFrame();
|
||||
|
||||
StringTableEntry var, objParent;
|
||||
U32 failJump;
|
||||
U32 failJump = 0;
|
||||
StringTableEntry fnName;
|
||||
StringTableEntry fnNamespace, fnPackage;
|
||||
|
||||
|
|
@ -776,7 +776,6 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
fnNamespace = CodeToSTE(code, ip + 2);
|
||||
fnPackage = CodeToSTE(code, ip + 4);
|
||||
bool hasBody = (code[ip + 6] & 0x01) != 0;
|
||||
U32 lineNumber = code[ip + 6] >> 1;
|
||||
|
||||
Namespace::unlinkPackages();
|
||||
if (fnNamespace == NULL && fnPackage == NULL)
|
||||
|
|
@ -1819,8 +1818,6 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
// it handles this method. It is set to an enum from the table
|
||||
// above indicating whether it handles it on a component it owns
|
||||
// or just on the object.
|
||||
S32 routingId = 0;
|
||||
|
||||
fnName = CodeToSTE(code, ip);
|
||||
fnNamespace = CodeToSTE(code, ip + 2);
|
||||
U32 callType = code[ip + 4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue