[cfe-commits] r133246 - in /cfe/trunk/lib: Sema/SemaExprObjC.cpp StaticAnalyzer/Core/CFRefCount.cpp

John McCall rjmccall at apple.com
Thu Jun 16 23:50:50 PDT 2011


Author: rjmccall
Date: Fri Jun 17 01:50:50 2011
New Revision: 133246

URL: http://llvm.org/viewvc/llvm-project?rev=133246&view=rev
Log:
Initialize a couple of variables to shut GCC up.


Modified:
    cfe/trunk/lib/Sema/SemaExprObjC.cpp
    cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp

Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=133246&r1=133245&r2=133246&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Fri Jun 17 01:50:50 2011
@@ -1586,7 +1586,7 @@
                                     "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);

Modified: cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp?rev=133246&r1=133245&r2=133246&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/CFRefCount.cpp Fri Jun 17 01:50:50 2011
@@ -3582,7 +3582,7 @@
   if (!BE)
     return;
   
-  ArgEffect AE;
+  ArgEffect AE = IncRef;
   
   switch (BE->getBridgeKind()) {
     case clang::OBC_Bridge:





More information about the cfe-commits mailing list