Kaydet (Commit) dc2b5cbb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

Change-Id: I273aee2d65f952afd78f6e2e504b5fa70dd65ef0
üst 1e42e804
......@@ -1157,7 +1157,7 @@ void FormulaCompiler::Factor()
if( eOp != ocClose )
SetError( errPairExpected);
else
eOp = NextToken();
NextToken();
}
}
}
......@@ -1181,7 +1181,7 @@ void FormulaCompiler::Factor()
if (eOp != ocClose)
SetError( errPairExpected);
else
eOp = NextToken();
NextToken();
}
else
{
......@@ -1240,7 +1240,7 @@ void FormulaCompiler::Factor()
if (eOp != ocClose)
SetError( errPairExpected);
PutCode( pFacToken);
eOp = NextToken();
NextToken();
}
}
// special cases NOT() and NEG()
......@@ -1278,7 +1278,7 @@ void FormulaCompiler::Factor()
if (eOp != ocClose)
SetError( errPairExpected);
else
eOp = NextToken();
NextToken();
pFacToken->SetByte( nSepCount );
if (nSepCount == 2)
{
......@@ -1305,7 +1305,7 @@ void FormulaCompiler::Factor()
else if ( !pArr->GetCodeError() )
pFacToken->SetByte( 1 );
PutCode( pFacToken );
eOp = NextToken();
NextToken();
}
}
else if ((SC_OPCODE_START_2_PAR <= eOp && eOp < SC_OPCODE_STOP_2_PAR)
......@@ -1355,7 +1355,7 @@ void FormulaCompiler::Factor()
else if (eOp != ocClose)
SetError( errPairExpected);
else
eOp = NextToken();
NextToken();
// Jumps are just normal functions for the FunctionAutoPilot tree view
if (!mbJumpCommandReorder && pFacToken->GetType() == svJump)
pFacToken = new FormulaFAPToken( pFacToken->GetOpCode(), nSepCount, pFacToken );
......@@ -1428,7 +1428,7 @@ void FormulaCompiler::Factor()
SetError( errPairExpected);
else
{
eOp = NextToken();
NextToken();
// always limit to nJumpMax, no arbitrary overwrites
if ( ++nJumpCount <= nJumpMax )
pFacToken->GetJump()[ nJumpCount ] = pc-1;
......@@ -1459,7 +1459,7 @@ void FormulaCompiler::Factor()
else if ( eOp == ocMissing )
{
PutCode( mpToken );
eOp = NextToken();
NextToken();
}
else if ( eOp == ocClose )
{
......@@ -1477,7 +1477,7 @@ void FormulaCompiler::Factor()
else if ( mpToken->IsExternalRef() )
{
PutCode( mpToken);
eOp = NextToken();
NextToken();
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment