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:
Yasser Shalabi
2022-07-27 01:05:01 +03:00
committed by GitHub
parent e42985e5aa
commit b7f13cd8e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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");