Index: clang/include/clang/Analysis/CallGraph.h =================================================================== --- clang/include/clang/Analysis/CallGraph.h +++ clang/include/clang/Analysis/CallGraph.h @@ -60,7 +60,7 @@ /// /// Recursively walks the declaration to find all the dependent Decls as well. void addToCallGraph(Decl *D) { - TraverseDecl(D); + (void)TraverseDecl(D); } /// Determine if a declaration should be included in the graph. Index: clang/lib/CodeGen/CGStmt.cpp =================================================================== --- clang/lib/CodeGen/CGStmt.cpp +++ clang/lib/CodeGen/CGStmt.cpp @@ -2213,7 +2213,7 @@ if (!Info.allowsRegister() && !Info.allowsMemory()) { if (Info.requiresImmediateConstant()) { Expr::EvalResult EVResult; - InputExpr->EvaluateAsRValue(EVResult, getContext(), true); + InputExpr->(void)EvaluateAsRValue(EVResult, getContext(), true); llvm::APSInt IntResult; if (EVResult.Val.toIntegralConstant(IntResult, InputExpr->getType(), Index: clang/lib/Parse/Parser.cpp =================================================================== --- clang/lib/Parse/Parser.cpp +++ clang/lib/Parse/Parser.cpp @@ -1603,7 +1603,7 @@ // Otherwise recover by skipping to next semi or mandatory function body. if (SkipUntil(tok::l_brace, StopAtSemi | StopBeforeMatch)) break; - TryConsumeToken(tok::semi); + (void)TryConsumeToken(tok::semi); } // The actions module must verify that all arguments were declared. Index: clang/lib/Sema/SemaChecking.cpp =================================================================== --- clang/lib/Sema/SemaChecking.cpp +++ clang/lib/Sema/SemaChecking.cpp @@ -4590,7 +4590,7 @@ } // Convert features like "zbr" and "experimental-zbr" to "Zbr". - OF.consume_front("experimental-"); + OF.(void)consume_front("experimental-"); std::string FeatureStr = OF.str(); FeatureStr[0] = std::toupper(FeatureStr[0]); // Combine strings. Index: clang/lib/Sema/SemaExpr.cpp =================================================================== --- clang/lib/Sema/SemaExpr.cpp +++ clang/lib/Sema/SemaExpr.cpp @@ -6033,7 +6033,7 @@ // point where the enclosing initializer is used in a function call. ImmediateCallVisitor V; if (!NestedDefaultChecking) - V.TraverseDecl(Param); + V.(void)TraverseDecl(Param); if (V.HasImmediateCalls) { ExprEvalContexts.back().DelayedDefaultInitializationContext = { CallLoc, Param, CurContext};