Skip to content

Commit 043ba8c

Browse files
committed
Adding ARC compilation warning
1 parent 06cde25 commit 043ba8c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

GCD/GCDAsyncUdpSocket.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// http://code.google.com/p/cocoaasyncsocket/
99
//
1010

11+
#if ! __has_feature(objc_arc)
12+
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
13+
#endif
14+
1115
#import "GCDAsyncUdpSocket.h"
1216

1317
#if TARGET_OS_IPHONE

RunLoop/AsyncSocket.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// http://code.google.com/p/cocoaasyncsocket/
99
//
1010

11+
#if ! __has_feature(objc_arc)
12+
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
13+
#endif
14+
1115
#import "AsyncSocket.h"
1216
#import <sys/socket.h>
1317
#import <netinet/in.h>

RunLoop/AsyncUdpSocket.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// http://code.google.com/p/cocoaasyncsocket/
99
//
1010

11+
#if ! __has_feature(objc_arc)
12+
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
13+
#endif
14+
1115
#import "AsyncUdpSocket.h"
1216
#import <sys/socket.h>
1317
#import <netinet/in.h>

0 commit comments

Comments
 (0)