Commit 5892bbaf authored by Marvin Scholz's avatar Marvin Scholz

keystore/keychain: Fix availability build error

This fixes a compilation error when partial availability checks
are enforced, as kSecAttrAccessible was not present before
Mavericks. The code already handles it properly, this just disables
the error.
parent 8434b122
......@@ -207,6 +207,8 @@ static NSString * ErrorForStatus(OSStatus status)
#define OSX_MAVERICKS (NSAppKitVersionNumber >= 1265)
extern const CFStringRef kSecAttrAccessible;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpartial-availability"
static void SetAccessibilityForQuery(vlc_keystore *p_keystore,
NSMutableDictionary *query)
{
......@@ -240,6 +242,7 @@ static void SetAccessibilityForQuery(vlc_keystore *p_keystore,
break;
}
}
#pragma clang diagnostic pop
static void SetAttributesForQuery(const char *const ppsz_values[KEY_MAX], NSMutableDictionary *query, const char *psz_label)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment