mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 00:38:52 +00:00
cpp_generator: comment out unused parameter to avoid warnings (#7381)
Presently flatc generates a placeholder for the unused synchronous varient of client-side streaming gRPCs which includes the name of an unused parameter in the method. To avoid warnings, comment out the parameter name (in a manner similar to other gRPCS).
This commit is contained in:
@@ -648,7 +648,7 @@ void PrintHeaderServerMethodAsync(grpc_generator::Printer *printer,
|
||||
"::grpc::Status $Method$("
|
||||
"::grpc::ServerContext* /*context*/, "
|
||||
"::grpc::ServerReader< $Request$>* /*reader*/, "
|
||||
"$Response$* response) final override {\n"
|
||||
"$Response$* /*response*/) final override {\n"
|
||||
" abort();\n"
|
||||
" return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, \"\");\n"
|
||||
"}\n");
|
||||
|
||||
Reference in New Issue
Block a user