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

Commit

Permalink
Merge pull request #96 from priteshshah1983/patch-1
Browse files Browse the repository at this point in the history
Fixed a warning
  • Loading branch information
kcharwood committed Oct 28, 2015
2 parents e25f6ab + a987820 commit 150e57f
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 150e57f

Please sign in to comment.