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

Commit

Permalink
Fixed a warning
Browse files Browse the repository at this point in the history
AFOAuth2Manager.m:347:10: Comparison of address of 'kSecAttrAccessibleWhenUnlocked' not equal to a null pointer is always true
  • Loading branch information
priteshshah1983 committed Jun 17, 2015
1 parent 30037a6 commit a987820
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AFOAuth2Manager/AFOAuth2Manager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a987820

Please sign in to comment.