diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -2482,7 +2482,7 @@ << /*Call*/ 1 << /*Function*/ 0 << E->getSourceRange(); } for (auto A : E->arguments()) { - getDerived().TraverseStmt(A); + (void)getDerived().TraverseStmt(A); } return true; } @@ -2516,7 +2516,7 @@ bool VisitBlockExpr(BlockExpr *T) { return true; } } Visitor(*this, FD); - Visitor.TraverseStmt(FD->getBody()); + (void)Visitor.TraverseStmt(FD->getBody()); } /// Get the class that is directly named by the current context. This is the