Permalink
Browse files

fix 6 warnings in xCode 4.3.3 and xCode4.5 DP1

  • Loading branch information...
OpenFibers committed Jun 21, 2012
1 parent f99ca46 commit 621867f28b790155097047831c128d6d9a8ce17b
@@ -212,7 +212,7 @@ + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinati
+ (NSError *)deflateErrorWithCode:(int)code
{
- return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]];
+ return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]];
}
@synthesize streamReady;
@@ -211,7 +211,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina
+ (NSError *)inflateErrorWithCode:(int)code
{
- return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",code],NSLocalizedDescriptionKey,nil]];
+ return [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of data failed with code %hi",(short)code],NSLocalizedDescriptionKey,nil]];
}
@synthesize streamReady;
@@ -98,7 +98,7 @@ - (void)buildURL
[queryParts addObject:[NSString stringWithFormat:@"delimiter=%@",[[self delimiter] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
}
if ([self maxResultCount] > 0) {
- [queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",[self maxResultCount]]];
+ [queryParts addObject:[NSString stringWithFormat:@"max-keys=%hi",(short)[self maxResultCount]]];
}
if ([queryParts count]) {
NSString* template = @"%@?%@";
@@ -161,13 +161,13 @@ static void logNetworkStatus_(const char *name, int line, NetworkStatus status)
switch (status) {
case kNotReachable:
- statusString = [NSString stringWithString: @"Not Reachable"];
+ statusString = @"Not Reachable";
break;
case kReachableViaWWAN:
- statusString = [NSString stringWithString: @"Reachable via WWAN"];
+ statusString = @"Reachable via WWAN";
break;
case kReachableViaWiFi:
- statusString = [NSString stringWithString: @"Reachable via WiFi"];
+ statusString = @"Reachable via WiFi";
break;
}

0 comments on commit 621867f

Please sign in to comment.