From 2a6fd26c45d634d0ade7bd2b9c575f47bfe06d31 Mon Sep 17 00:00:00 2001
From: Todd Poynor <toddpoynor@google.com>
Date: Thu, 26 Feb 2015 20:04:26 -0800
Subject: [PATCH] grpc: cpp_generator: fix pedantic warning on extra ';'

Fix pedantic warnings of form:

   myprotobuf.pb.cc:619:2: warning: extra ';' [-Wpedantic]
    };
     ^
---
 src/compiler/cpp_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
index 088fc6bc13..1139dfc89b 100644
--- a/src/compiler/cpp_generator.cc
+++ b/src/compiler/cpp_generator.cc
@@ -609,7 +609,7 @@ void PrintSourceService(google::protobuf::io::Printer *printer,
       "  std::unique_ptr< $Service$::Stub> stub(new $Service$::Stub());\n"
       "  stub->set_channel(channel);\n"
       "  return stub;\n"
-      "};\n\n");
+      "}\n\n");
   for (int i = 0; i < service->method_count(); ++i) {
     (*vars)["Idx"] = as_string(i);
     PrintSourceClientMethod(printer, service->method(i), vars);
-- 
GitLab