diff --git a/Sparkle/SUAppcastItem.m b/Sparkle/SUAppcastItem.m index 2e20fc5b..448be07b 100644 --- a/Sparkle/SUAppcastItem.m +++ b/Sparkle/SUAppcastItem.m @@ -60,7 +60,7 @@ return [self initWithDictionary:dict failureReason:nil]; } -- (instancetype) initWithDictionary:(NSDictionary *)dict failureReason:(NSString**)error +- (instancetype) initWithDictionary:(NSDictionary *)dict failureReason:(NSString*__autoreleasing *)error { self = [super init]; if (self) diff --git a/Sparkle/SUCodeSigningVerifier.m b/Sparkle/SUCodeSigningVerifier.m index 2c74de55..52be8cef 100644 --- a/Sparkle/SUCodeSigningVerifier.m +++ b/Sparkle/SUCodeSigningVerifier.m @@ -13,7 +13,7 @@ @implementation SUCodeSigningVerifier -+ (BOOL)codeSignatureIsValidAtPath:(NSString *)destinationPath error:(NSError **)error ++ (BOOL)codeSignatureIsValidAtPath:(NSString *)destinationPath error:(NSError *__autoreleasing *)error { OSStatus result; SecRequirementRef requirement = NULL; diff --git a/Sparkle/SUPlainInstallerInternals.m b/Sparkle/SUPlainInstallerInternals.m index 4c7cce32..46c9030d 100644 --- a/Sparkle/SUPlainInstallerInternals.m +++ b/Sparkle/SUPlainInstallerInternals.m @@ -163,7 +163,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return tempDir; } -+ (BOOL)_copyPathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst temporaryPath:(NSString *)tmp error:(NSError **)error ++ (BOOL)_copyPathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst temporaryPath:(NSString *)tmp error:(NSError *__autoreleasing *)error { // *** MUST BE SAFE TO CALL ON NON-MAIN THREAD! @@ -295,7 +295,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return res; } -+ (BOOL)_movePathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst error:(NSError **)error ++ (BOOL)_movePathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst error:(NSError *__autoreleasing *)error { // *** MUST BE SAFE TO CALL ON NON-MAIN THREAD! @@ -369,7 +369,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza } -+ (BOOL)_removeFileAtPathWithForcedAuthentication:(NSString *)src error:(NSError **)error ++ (BOOL)_removeFileAtPathWithForcedAuthentication:(NSString *)src error:(NSError *__autoreleasing *)error { // *** MUST BE SAFE TO CALL ON NON-MAIN THREAD! @@ -416,7 +416,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return res; } -+ (BOOL)_removeFileAtPath:(NSString *)path error: (NSError**)error ++ (BOOL)_removeFileAtPath:(NSString *)path error: (NSError*__autoreleasing *)error { BOOL success = YES; if( ![[NSFileManager defaultManager] removeItemAtPath: path error: NULL] ) @@ -448,7 +448,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza ;//SULog(@"Moved %@ to the trash.", path); } -+ (BOOL)copyPathWithAuthentication:(NSString *)src overPath:(NSString *)dst temporaryName:(NSString *) __unused tmp error:(NSError **)error ++ (BOOL)copyPathWithAuthentication:(NSString *)src overPath:(NSString *)dst temporaryName:(NSString *) __unused tmp error:(NSError *__autoreleasing *)error { FSRef srcRef, dstRef, dstDirRef, tmpDirRef; OSStatus err; diff --git a/Vendor/CocoatechCore/NTSynchronousTask.m b/Vendor/CocoatechCore/NTSynchronousTask.m index 2ee1ce8c..b0fdee24 100644 --- a/Vendor/CocoatechCore/NTSynchronousTask.m +++ b/Vendor/CocoatechCore/NTSynchronousTask.m @@ -144,7 +144,7 @@ } -+(int) task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input output: (NSData**)outData ++(int) task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input output: (NSData*__autoreleasing *)outData { // we need this wacky pool here, otherwise we run out of pipes, the pipes are internally autoreleased @autoreleasepool {