Revert ProtoService.m, add an exception for its incompatible-pointer-types warning

pull/6922/head
Yuchen Zeng 9 years ago
parent ca3e9c8206
commit aa338326ed
  1. 9
      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

Loading…
Cancel
Save