When run with high warning levels, gcc complains that the 'request'
and 'response' arguments are unused for all of the stub service
functions generated by the protoc compiler.  Here's the 2-line patch
to fix this.

--- src/google/protobuf/compiler/cpp/cpp_service.cc.orig
2008-10-02 15:36:56.000000000 -0400
+++ src/google/protobuf/compiler/cpp/cpp_service.cc     2008-10-02
15:37:07.000000000 -0400
@@ -219,8 +219,8 @@

       "void $classname$::$name$(::google::protobuf::RpcController*
-      "                         const $input_type$* request,\n"
-      "                         $output_type$* response,\n"
+      "                         const $input_type$*,\n"
+      "                         $output_type$*,\n"
       "                         ::google::protobuf::Closure* done)
       "  controller->SetFailed(\"Method $name$() not implemented.\");
       "  done->Run();\n"

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to