#pragma clang diagnostic ignored "-Wunused-function"
/* name is the name of the test, not the name of the keychain */
-static SecKeychainRef newKeychain(const char * name) {
+static CF_RETURNS_RETAINED SecKeychainRef newKeychain(const char * name) {
SecKeychainRef kc = NULL;
char* password = "password";
}
#define newCustomKeychainTests 1
-static SecKeychainRef openCustomKeychain(const char * name, const char * path, const char * password) {
+static CF_RETURNS_RETAINED SecKeychainRef openCustomKeychain(const char * name, const char * path, const char * password) {
SecKeychainRef kc = NULL;
ok_status(SecKeychainOpen(path, &kc), "%s: SecKeychainOpen", name);
}
#define openCustomKeychainTests 2
-static SecKeychainRef openKeychain(const char * name) {
+static CF_RETURNS_RETAINED SecKeychainRef openKeychain(const char * name) {
return openCustomKeychain(name, keychainName, NULL);
}
#define openKeychainTests (openCustomKeychainTests)
}
#define checkHashesMatchTests (getIntegrityHashTests + getIntegrityHashTests + 1)
-#pragma clang pop
+#pragma clang diagnostic pop
#else
#endif /* TARGET_OS_MAC */