From c2fca2d9afa7fe31bfd2389bf1a9fb46a11cca63 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 9 Nov 2019 17:23:53 +0000 Subject: [PATCH] =?utf8?q?Fix=20variable=20=E2=80=98LookedUpGetterSetter?= =?utf8?q?=E2=80=99=20set=20but=20not=20used=20warning.=20NFCI.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- clang/lib/Sema/SemaObjCProperty.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 427def1..558a754 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -2175,7 +2175,6 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl, const ObjCPropertyDecl *Property = I->second; ObjCMethodDecl *GetterMethod = nullptr; ObjCMethodDecl *SetterMethod = nullptr; - bool LookedUpGetterSetter = false; unsigned Attributes = Property->getPropertyAttributes(); unsigned AttributesAsWritten = Property->getPropertyAttributesAsWritten(); @@ -2192,7 +2191,6 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl, GetterMethod = nullptr; if (SetterMethod && SetterMethod->isSynthesizedAccessorStub()) SetterMethod = nullptr; - LookedUpGetterSetter = true; if (GetterMethod) { Diag(GetterMethod->getLocation(), diag::warn_default_atomic_custom_getter_setter) -- 2.7.4