aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-17 06:50:50 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-17 06:50:50 +0000
commit71c482c76c67ad4240757c4e319ffdb72272b8ee (patch)
tree86de06141e7eda5c495b98f6111bbd7b8a87e428
parent7acddacc921cd0b3f813443a8641eeddb82dfbd4 (diff)
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
-rw-r--r--lib/Sema/SemaExprObjC.cpp2
-rw-r--r--lib/StaticAnalyzer/Core/CFRefCount.cpp2
2 files changed, 2 insertions, 2 deletions
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: