OpenThread

fix 6 warnings in xCode 4.3.3 and xCode4.5 DP1

... ... @@ -212,7 +212,7 @@
+ (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 @@
+ (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 @@
[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;
}
... ...