diff options
author | 2016-06-20 16:47:40 -0700 | |
---|---|---|
committer | 2016-06-20 16:47:40 -0700 | |
commit | aa338326ed399832394078282664c6bcf66d11e7 (patch) | |
tree | 7ddcb061acc90ba818d9144c514235279d85f416 /src | |
parent | ca3e9c82062f1613b2abe01f68c81c3e673bb73e (diff) |
Revert ProtoService.m, add an exception for its incompatible-pointer-types warning
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/ProtoRPC/ProtoService.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoService.m b/src/objective-c/ProtoRPC/ProtoService.m index 4a14570d81..cd9bc7aeac 100644 --- a/src/objective-c/ProtoRPC/ProtoService.m +++ b/src/objective-c/ProtoRPC/ProtoService.m @@ -65,19 +65,22 @@ return self; } -- (GRPCProtoCall *)RPCToMethod:(NSString *)method +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wincompatible-pointer-types" +- (ProtoRPC *)RPCToMethod:(NSString *)method requestsWriter:(GRXWriter *)requestsWriter responseClass:(Class)responseClass responsesWriteable:(id<GRXWriteable>)responsesWriteable { - GRPCProtoMethod *methodName = [[GRPCProtoMethod alloc] initWithPackage:_packageName + ProtoMethod *methodName = [[ProtoMethod alloc] initWithPackage:_packageName service:_serviceName method:method]; - return [[GRPCProtoCall alloc] initWithHost:_host + return [[ProtoRPC alloc] initWithHost:_host method:methodName requestsWriter:requestsWriter responseClass:responseClass responsesWriteable:responsesWriteable]; } +#pragma clang diagnostic pop @end @implementation GRPCProtoService |