From: Aaron Ballman Date: Tue, 28 Apr 2015 12:36:54 +0000 (+0000) Subject: Silencing a spurious -Wuninitialized warning with this local; NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9d764a9b8583ae49fcd3efaf338226c9438a193;p=clang Silencing a spurious -Wuninitialized warning with this local; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235981 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index 80c6df0dd5..e9c76b643b 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -1482,7 +1482,7 @@ ExprResult Sema::BuildLambdaExpr(SourceLocation StartLoc, SourceLocation EndLoc, // Collect information from the lambda scope. SmallVector Captures; SmallVector CaptureInits; - LambdaCaptureDefault CaptureDefault; + LambdaCaptureDefault CaptureDefault = LCD_None; SourceLocation CaptureDefaultLoc; CXXRecordDecl *Class; CXXMethodDecl *CallOperator;