Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit a987820

Browse files
Fixed a warning
AFOAuth2Manager.m:347:10: Comparison of address of 'kSecAttrAccessibleWhenUnlocked' not equal to a null pointer is always true
1 parent 30037a6 commit a987820

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

AFOAuth2Manager/AFOAuth2Manager.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,12 @@ + (BOOL)storeCredential:(AFOAuthCredential *)credential
344344
{
345345
id securityAccessibility = nil;
346346
#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)
347+
#pragma clang diagnostic push
348+
#pragma clang diagnostic ignored "-Wtautological-compare"
347349
if (&kSecAttrAccessibleWhenUnlocked != NULL) {
348350
securityAccessibility = (__bridge id)kSecAttrAccessibleWhenUnlocked;
349351
}
352+
#pragma clang diagnostic pop
350353
#endif
351354

352355
return [[self class] storeCredential:credential withIdentifier:identifier withAccessibility:securityAccessibility];

0 commit comments

Comments
 (0)