From: John McCall Date: Fri, 17 Jun 2011 06:50:50 +0000 (+0000) Subject: Initialize a couple of variables to shut GCC up. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71c482c76c67ad4240757c4e319ffdb72272b8ee;p=clang Initialize a couple of variables to shut GCC up. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133246 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprObjC.cpp b/lib/Sema/SemaExprObjC.cpp index 70eb2a3c72..5aff7347a6 100644 --- a/lib/Sema/SemaExprObjC.cpp +++ b/lib/Sema/SemaExprObjC.cpp @@ -1586,7 +1586,7 @@ Sema::CheckObjCARCConversion(SourceRange castRange, QualType castType, "converts between Objective-C and C pointers in -fobjc-arc")) return; - unsigned srcKind; + unsigned srcKind = 0; switch (exprACTC) { case ACTC_none: srcKind = (castExprType->isPointerType() ? 1 : 0); diff --git a/lib/StaticAnalyzer/Core/CFRefCount.cpp b/lib/StaticAnalyzer/Core/CFRefCount.cpp index 33118fa901..70646e9f8b 100644 --- a/lib/StaticAnalyzer/Core/CFRefCount.cpp +++ b/lib/StaticAnalyzer/Core/CFRefCount.cpp @@ -3582,7 +3582,7 @@ void RetainReleaseChecker::checkPostStmt(const CastExpr *CE, if (!BE) return; - ArgEffect AE; + ArgEffect AE = IncRef; switch (BE->getBridgeKind()) { case clang::OBC_Bridge: