Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 5b095e7

Browse files
committed
Merge pull request #75 from The-MeLLeR/master
Supres the deprecation warning
2 parents 274d091 + 3e13f4f commit 5b095e7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SocketIO.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,10 @@ - (void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)er
626626
}
627627
// TODO: deprecated - to be removed
628628
else if ([_delegate respondsToSelector:@selector(socketIOHandshakeFailed:)]) {
629+
#pragma clang diagnostic push
630+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
629631
[_delegate socketIOHandshakeFailed:self];
632+
#pragma clang diagnostic pop
630633
}
631634
}
632635

@@ -707,7 +710,10 @@ - (void) connectionDidFinishLoading:(NSURLConnection *)connection
707710
}
708711
// TODO: deprecated - to be removed
709712
else if ([_delegate respondsToSelector:@selector(socketIO:failedToConnectWithError:)]) {
713+
#pragma clang diagnostic push
714+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
710715
[_delegate socketIO:self failedToConnectWithError:error];
716+
#pragma clang diagnostic pop
711717
}
712718

713719
// make sure to do call all cleanup code
@@ -764,4 +770,4 @@ - (void) dealloc
764770
}
765771

766772

767-
@end
773+
@end

0 commit comments

Comments
 (0)