From a987820ba3e03a12f950ac94d0f4eafd25a98547 Mon Sep 17 00:00:00 2001 From: Pritesh Shah Date: Tue, 16 Jun 2015 21:45:50 -0700 Subject: [PATCH] Fixed a warning AFOAuth2Manager.m:347:10: Comparison of address of 'kSecAttrAccessibleWhenUnlocked' not equal to a null pointer is always true --- AFOAuth2Manager/AFOAuth2Manager.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AFOAuth2Manager/AFOAuth2Manager.m b/AFOAuth2Manager/AFOAuth2Manager.m index 0f579e0a..e851ce4c 100644 --- a/AFOAuth2Manager/AFOAuth2Manager.m +++ b/AFOAuth2Manager/AFOAuth2Manager.m @@ -344,9 +344,12 @@ + (BOOL)storeCredential:(AFOAuthCredential *)credential { id securityAccessibility = nil; #if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 43000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wtautological-compare" if (&kSecAttrAccessibleWhenUnlocked != NULL) { securityAccessibility = (__bridge id)kSecAttrAccessibleWhenUnlocked; } +#pragma clang diagnostic pop #endif return [[self class] storeCredential:credential withIdentifier:identifier withAccessibility:securityAccessibility];