]> granicus.if.org Git - clang/commitdiff
Remove an unused variable (which caused a warning).
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 16 Feb 2009 19:40:26 +0000 (19:40 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 16 Feb 2009 19:40:26 +0000 (19:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64660 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 1c9594a9702dfa4b8a34035888659459a57144fa..6e8154c39647e9622d1a5e747b279cf1c66604ac 100644 (file)
@@ -48,7 +48,7 @@ void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
   // Introduce all of the other parameters into this scope.
   for (unsigned i = 0, e = MDecl->getNumParams(); i != e; ++i) {
     ParmVarDecl *PDecl = MDecl->getParamDecl(i);
-    if (IdentifierInfo *II = PDecl->getIdentifier())
+    if (PDecl->getIdentifier())
       PushOnScopeChains(PDecl, FnBodyScope);
   }
 }