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; return self;
} }
- (GRPCProtoCall *)RPCToMethod:(NSString *)method #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
- (ProtoRPC *)RPCToMethod:(NSString *)method
requestsWriter:(GRXWriter *)requestsWriter requestsWriter:(GRXWriter *)requestsWriter
responseClass:(Class)responseClass responseClass:(Class)responseClass
responsesWriteable:(id<GRXWriteable>)responsesWriteable { responsesWriteable:(id<GRXWriteable>)responsesWriteable {
GRPCProtoMethod *methodName = [[GRPCProtoMethod alloc] initWithPackage:_packageName ProtoMethod *methodName = [[ProtoMethod alloc] initWithPackage:_packageName
service:_serviceName service:_serviceName
method:method]; method:method];
return [[GRPCProtoCall alloc] initWithHost:_host return [[ProtoRPC alloc] initWithHost:_host
method:methodName method:methodName
requestsWriter:requestsWriter requestsWriter:requestsWriter
responseClass:responseClass responseClass:responseClass
responsesWriteable:responsesWriteable]; responsesWriteable:responsesWriteable];
} }
#pragma clang diagnostic pop
@end @end
@implementation GRPCProtoService @implementation GRPCProtoService

Loading…
Cancel
Save