Kaydet (Commit) 80cb1ecb authored tarafından Noel Grandin's avatar Noel Grandin

-Werror=unused-param

Change-Id: I066b74763e45c785a9ebd7094fc33f44b8ddefb6
üst 9769288a
...@@ -162,7 +162,7 @@ private: ...@@ -162,7 +162,7 @@ private:
const VarDecl* findSimpleAssign(Stmt const*); const VarDecl* findSimpleAssign(Stmt const*);
bool isSimpleRHS(Expr const*); bool isSimpleRHS(Expr const*);
Expr const* ignore(Expr const*); Expr const* ignore(Expr const*);
void checkForSecondAssign(Stmt const* firstStmt, Stmt const* stmt, VarDecl const* varDecl); void checkForSecondAssign(Stmt const* stmt, VarDecl const* varDecl);
}; };
bool SequentialAssign::VisitCompoundStmt(CompoundStmt const* compoundStmt) bool SequentialAssign::VisitCompoundStmt(CompoundStmt const* compoundStmt)
...@@ -186,14 +186,13 @@ bool SequentialAssign::VisitCompoundStmt(CompoundStmt const* compoundStmt) ...@@ -186,14 +186,13 @@ bool SequentialAssign::VisitCompoundStmt(CompoundStmt const* compoundStmt)
++it; ++it;
if (it == compoundStmt->body_end()) if (it == compoundStmt->body_end())
break; break;
checkForSecondAssign(firstStmt, *it, foundVars); checkForSecondAssign(*it, foundVars);
} }
return true; return true;
} }
void SequentialAssign::checkForSecondAssign(Stmt const* firstStmt, Stmt const* stmt, void SequentialAssign::checkForSecondAssign(Stmt const* stmt, VarDecl const* varDecl)
VarDecl const* varDecl)
{ {
if (auto exprCleanup = dyn_cast<ExprWithCleanups>(stmt)) if (auto exprCleanup = dyn_cast<ExprWithCleanups>(stmt))
stmt = exprCleanup->getSubExpr(); stmt = exprCleanup->getSubExpr();
......
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