Skip to content
Snippets Groups Projects
Commit 2a6fd26c authored by Todd Poynor's avatar Todd Poynor
Browse files

grpc: cpp_generator: fix pedantic warning on extra ';'

Fix pedantic warnings of form:

   myprotobuf.pb.cc:619:2: warning: extra ';' [-Wpedantic]
    };
     ^
parent 47d03aae
No related branches found
No related tags found
No related merge requests found
...@@ -609,7 +609,7 @@ void PrintSourceService(google::protobuf::io::Printer *printer, ...@@ -609,7 +609,7 @@ void PrintSourceService(google::protobuf::io::Printer *printer,
" std::unique_ptr< $Service$::Stub> stub(new $Service$::Stub());\n" " std::unique_ptr< $Service$::Stub> stub(new $Service$::Stub());\n"
" stub->set_channel(channel);\n" " stub->set_channel(channel);\n"
" return stub;\n" " return stub;\n"
"};\n\n"); "}\n\n");
for (int i = 0; i < service->method_count(); ++i) { for (int i = 0; i < service->method_count(); ++i) {
(*vars)["Idx"] = as_string(i); (*vars)["Idx"] = as_string(i);
PrintSourceClientMethod(printer, service->method(i), vars); PrintSourceClientMethod(printer, service->method(i), vars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment