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

Commit 150e57f

Browse files
committed
Merge pull request #96 from priteshshah1983/patch-1
Fixed a warning
2 parents e25f6ab + a987820 commit 150e57f

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)