aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-02-05 11:48:00 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-02-05 13:37:25 -0800
commit45ca2022cd3dfd19635dbabf3aece3b8953d686b (patch)
tree0679507f6d041f5e0c77a8741d2c67841ef0ba03 /src/objective-c
parent53a295bca748643603a689e2d88cb8cc492386af (diff)
Resolve warnings of implementing deprecated class
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/ProtoRPC/ProtoMethod.m3
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m3
-rw-r--r--src/objective-c/ProtoRPC/ProtoService.m3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoMethod.m b/src/objective-c/ProtoRPC/ProtoMethod.m
index 4bef10af0e..ed585acfb9 100644
--- a/src/objective-c/ProtoRPC/ProtoMethod.m
+++ b/src/objective-c/ProtoRPC/ProtoMethod.m
@@ -18,7 +18,10 @@
#import "ProtoMethod.h"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation ProtoMethod
+#pragma clang diagnostic pop
- (instancetype)initWithPackage:(NSString *)package
service:(NSString *)service
method:(NSString *)method {
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m
index 1ecfcc5b0e..20b9d04cd8 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.m
+++ b/src/objective-c/ProtoRPC/ProtoRPC.m
@@ -42,7 +42,10 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing
userInfo:info];
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation ProtoRPC {
+#pragma clang diagnostic pop
id<GRXWriteable> _responseWriteable;
}
diff --git a/src/objective-c/ProtoRPC/ProtoService.m b/src/objective-c/ProtoRPC/ProtoService.m
index be6089f0a4..611cee46bf 100644
--- a/src/objective-c/ProtoRPC/ProtoService.m
+++ b/src/objective-c/ProtoRPC/ProtoService.m
@@ -24,7 +24,10 @@
#import "ProtoMethod.h"
#import "ProtoRPC.h"
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation ProtoService {
+#pragma clang diagnostic pop
NSString *_host;
NSString *_packageName;
NSString *_serviceName;