From: Steve Naroff Date: Wed, 24 Sep 2008 22:46:45 +0000 (+0000) Subject: Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc2ece2e362085ef50af5af69558ed67f7ed73e0;p=clang Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs@apple.com). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56591 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/RewriteBlocks.cpp b/Driver/RewriteBlocks.cpp index 691f104a64..76d0ebd42c 100644 --- a/Driver/RewriteBlocks.cpp +++ b/Driver/RewriteBlocks.cpp @@ -679,8 +679,8 @@ Stmt *RewriteBlocks::RewriteFunctionBody(Stmt *S) { std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) { // Navigate to relevant type information. - const char *closureName; - const BlockPointerType *CPT; + const char *closureName = 0; + const BlockPointerType *CPT = 0; if (const DeclRefExpr *DRE = dyn_cast(Exp->getCallee())) { closureName = DRE->getDecl()->getName();