From: Chandler Carruth Date: Sat, 13 Feb 2010 07:23:01 +0000 (+0000) Subject: Silence a GCC warning about a possibly uninitialized variable. It's data flow X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b571924f32590f026889f227f03570e59e5c29b7;p=clang Silence a GCC warning about a possibly uninitialized variable. It's data flow only flows so far it seems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96085 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index d47b8caec0..7b4a41777b 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -744,7 +744,7 @@ void InitListChecker::CheckScalarType(const InitializedEntity &Entity, SemaRef.PerformCopyInitialization(Entity, expr->getLocStart(), SemaRef.Owned(expr)); - Expr *ResultExpr; + Expr *ResultExpr = 0; if (Result.isInvalid()) hadError = true; // types weren't compatible.