Ben Copsey

Fix LLVM compiler warnings

... ... @@ -31,5 +31,5 @@ typedef enum _ASIAuthenticationType {
@property (retain) ASIHTTPRequest *request;
@property (assign) ASIAuthenticationType type;
@property (assign) BOOL didEnableRotationNotifications;
@property (retain) UIViewController *presentingController;
@property (retain, nonatomic) UIViewController *presentingController;
@end
... ...
... ... @@ -40,8 +40,8 @@
// Do not use this formatter for parsing dates because the format can vary slightly - use ASIHTTPRequest's dateFromRFC1123String: class method instead
+ (NSDateFormatter *)rfc1123DateFormatter;
@property (assign) ASICachePolicy defaultCachePolicy;
@property (retain) NSString *storagePath;
@property (assign, nonatomic) ASICachePolicy defaultCachePolicy;
@property (retain, nonatomic) NSString *storagePath;
@property (retain) NSRecursiveLock *accessLock;
@property (assign) BOOL shouldRespectCacheControlHeaders;
@end
... ...
... ... @@ -47,6 +47,15 @@ static NSString *permanentCacheFolder = @"PermanentStore";
[super dealloc];
}
- (NSString *)storagePath
{
[[self accessLock] lock];
NSString *p = [[storagePath retain] autorelease];
[[self accessLock] unlock];
return p;
}
- (void)setStoragePath:(NSString *)path
{
[[self accessLock] lock];
... ... @@ -276,6 +285,14 @@ static NSString *permanentCacheFolder = @"PermanentStore";
return YES;
}
- (ASICachePolicy)defaultCachePolicy
{
[[self accessLock] lock];
ASICachePolicy cp = defaultCachePolicy;
[[self accessLock] unlock];
return cp;
}
- (void)setDefaultCachePolicy:(ASICachePolicy)cachePolicy
{
... ...
... ... @@ -751,10 +751,10 @@ extern unsigned long const ASIWWANBandwidthThrottleAmount;
@property (retain,setter=setURL:) NSURL *url;
@property (retain) NSURL *originalURL;
@property (assign) id delegate;
@property (assign) id queue;
@property (assign) id uploadProgressDelegate;
@property (assign) id downloadProgressDelegate;
@property (assign, nonatomic) id delegate;
@property (assign, nonatomic) id queue;
@property (assign, nonatomic) id uploadProgressDelegate;
@property (assign, nonatomic) id downloadProgressDelegate;
@property (assign) BOOL useKeychainPersistence;
@property (assign) BOOL useSessionPersistence;
@property (retain) NSString *downloadDestinationPath;
... ...
... ... @@ -24,7 +24,7 @@
// Automatically set on build
NSString *ASIHTTPRequestVersion = @"v1.7-10 2010-07-02";
NSString *ASIHTTPRequestVersion = @"v1.7-11 2010-07-02";
NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
... ... @@ -461,6 +461,14 @@ static NSOperationQueue *sharedQueue = nil;
[stream close];
}
- (id)delegate
{
[[self cancelledLock] lock];
id d = [[delegate retain] autorelease];
[[self cancelledLock] unlock];
return d;
}
- (void)setDelegate:(id)newDelegate
{
[[self cancelledLock] lock];
... ... @@ -468,6 +476,15 @@ static NSOperationQueue *sharedQueue = nil;
[[self cancelledLock] unlock];
}
- (id)queue
{
[[self cancelledLock] lock];
id q = [[queue retain] autorelease];
[[self cancelledLock] unlock];
return q;
}
- (void)setQueue:(id)newQueue
{
[[self cancelledLock] lock];
... ... @@ -1334,6 +1351,13 @@ static NSOperationQueue *sharedQueue = nil;
}
}
- (id)uploadProgressDelegate
{
[[self cancelledLock] lock];
id d = [[uploadProgressDelegate retain] autorelease];
[[self cancelledLock] unlock];
return d;
}
- (void)setUploadProgressDelegate:(id)newDelegate
{
... ... @@ -1348,6 +1372,14 @@ static NSOperationQueue *sharedQueue = nil;
[[self cancelledLock] unlock];
}
- (id)downloadProgressDelegate
{
[[self cancelledLock] lock];
id d = [[downloadProgressDelegate retain] autorelease];
[[self cancelledLock] unlock];
return d;
}
- (void)setDownloadProgressDelegate:(id)newDelegate
{
[[self cancelledLock] lock];
... ...
... ... @@ -80,8 +80,8 @@
// This method will start the queue
- (void)go;
@property (assign,setter=setUploadProgressDelegate:) id uploadProgressDelegate;
@property (assign,setter=setDownloadProgressDelegate:) id downloadProgressDelegate;
@property (assign, nonatomic, setter=setUploadProgressDelegate:) id uploadProgressDelegate;
@property (assign, nonatomic, setter=setDownloadProgressDelegate:) id downloadProgressDelegate;
@property (assign) SEL requestDidStartSelector;
@property (assign) SEL requestDidReceiveResponseHeadersSelector;
... ...
This diff was suppressed by a .gitattributes entry.