@@ -65,6 +65,7 @@ @interface AsyncSocket (Private)
65
65
// Connecting
66
66
- (void )startConnectTimeout : (NSTimeInterval )timeout ;
67
67
- (void )endConnectTimeout ;
68
+ - (void )doConnectTimeout : (NSTimer *)timer ;
68
69
69
70
// Socket Implementation
70
71
- (CFSocketRef)newAcceptSocketForAddress : (NSData *)addr error : (NSError **)errPtr ;
@@ -1582,6 +1583,8 @@ - (void)endConnectTimeout
1582
1583
1583
1584
- (void )doConnectTimeout : (NSTimer *)timer
1584
1585
{
1586
+ #pragma unused(timer)
1587
+
1585
1588
[self endConnectTimeout ];
1586
1589
[self closeWithError: [self getConnectTimeoutError ]];
1587
1590
}
@@ -1706,7 +1709,9 @@ - (BOOL)bindSocketToAddress:(NSData *)interfaceAddr error:(NSError **)errPtr
1706
1709
* Adds the CFSocket's to the run-loop so that callbacks will work properly.
1707
1710
**/
1708
1711
- (BOOL )attachSocketsToRunLoop : (NSRunLoop *)runLoop error : (NSError **)errPtr
1709
- {
1712
+ {
1713
+ #pragma unused(errPtr)
1714
+
1710
1715
// Get the CFRunLoop to which the socket should be attached.
1711
1716
theRunLoop = (runLoop == nil ) ? CFRunLoopGetCurrent () : [runLoop getCFRunLoop ];
1712
1717
@@ -3829,6 +3834,8 @@ - (void)endCurrentRead
3829
3834
3830
3835
- (void )doReadTimeout : (NSTimer *)timer
3831
3836
{
3837
+ #pragma unused(timer)
3838
+
3832
3839
NSTimeInterval timeoutExtension = 0.0 ;
3833
3840
3834
3841
if ([theDelegate respondsToSelector: @selector (onSocket:shouldTimeoutReadWithTag:elapsed:bytesDone: )])
@@ -4065,6 +4072,8 @@ - (void)endCurrentWrite
4065
4072
4066
4073
- (void )doWriteTimeout : (NSTimer *)timer
4067
4074
{
4075
+ #pragma unused(timer)
4076
+
4068
4077
NSTimeInterval timeoutExtension = 0.0 ;
4069
4078
4070
4079
if ([theDelegate respondsToSelector: @selector (onSocket:shouldTimeoutWriteWithTag:elapsed:bytesDone: )])
@@ -4178,6 +4187,8 @@ - (void)doCFSocketCallback:(CFSocketCallBackType)type
4178
4187
withAddress : (NSData *)address
4179
4188
withData : (const void *)pData
4180
4189
{
4190
+ #pragma unused(address)
4191
+
4181
4192
NSParameterAssert ((sock == theSocket4) || (sock == theSocket6));
4182
4193
4183
4194
switch (type)
@@ -4200,6 +4211,8 @@ - (void)doCFSocketCallback:(CFSocketCallBackType)type
4200
4211
4201
4212
- (void )doCFReadStreamCallback : (CFStreamEventType)type forStream : (CFReadStreamRef)stream
4202
4213
{
4214
+ #pragma unused(stream)
4215
+
4203
4216
NSParameterAssert (theReadStream != NULL );
4204
4217
4205
4218
CFStreamError err;
@@ -4230,6 +4243,8 @@ - (void)doCFReadStreamCallback:(CFStreamEventType)type forStream:(CFReadStreamRe
4230
4243
4231
4244
- (void )doCFWriteStreamCallback : (CFStreamEventType)type forStream : (CFWriteStreamRef)stream
4232
4245
{
4246
+ #pragma unused(stream)
4247
+
4233
4248
NSParameterAssert (theWriteStream != NULL );
4234
4249
4235
4250
CFStreamError err;
0 commit comments