]> granicus.if.org Git - clang/commitdiff
Couple more uninitialized before use warning elimination.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 3 Jan 2008 20:04:58 +0000 (20:04 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 3 Jan 2008 20:04:58 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45547 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index d20be96936bb8b8db720b4f04fc034432e21f030..85ccfd7556340be08f75639d4cd9a2a713b9854c 100644 (file)
@@ -1385,7 +1385,7 @@ bool ASTContext::ObjcQualifiedIdTypesAreCompatible(QualType lhs,
       return false;
     
     unsigned numRhsProtocols = 0;
-    ObjcProtocolDecl **rhsProtoList;
+    ObjcProtocolDecl **rhsProtoList = 0;
     if (rhsQI) {
       numRhsProtocols = rhsQI->getNumProtocols();
       rhsProtoList = rhsQI->getReferencedProtocols();
@@ -1436,7 +1436,7 @@ bool ASTContext::ObjcQualifiedIdTypesAreCompatible(QualType lhs,
       return false;
     
     unsigned numLhsProtocols = 0;
-    ObjcProtocolDecl **lhsProtoList;
+    ObjcProtocolDecl **lhsProtoList = 0;
     if (lhsQI) {
       numLhsProtocols = lhsQI->getNumProtocols();
       lhsProtoList = lhsQI->getReferencedProtocols();