Skip to content
Snippets Groups Projects
Commit bfa6eb90 authored by Vijay Pai's avatar Vijay Pai
Browse files

Merge pull request #5196 from yang-g/no_rpc_service

Add a dummy reference to prevent unused variable warning if there is …
parents 9c7961a0 e39cb740
No related branches found
No related tags found
No related merge requests found
......@@ -1106,6 +1106,7 @@ void PrintSourceService(grpc::protobuf::io::Printer *printer,
printer->Print(*vars, "$ns$$Service$::Service::Service() {\n");
printer->Indent();
printer->Print(*vars, "(void)$prefix$$Service$_method_names;\n");
for (int i = 0; i < service->method_count(); ++i) {
const grpc::protobuf::MethodDescriptor *method = service->method(i);
(*vars)["Idx"] = as_string(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment