Change unused parameter name comment to cast

pull/20878/head
Vijay Pai 5 years ago committed by GitHub
parent e4c77bb137
commit 8b597ad5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/lib/iomgr/buffer_list.cc

@ -294,7 +294,11 @@ void grpc_tcp_set_write_timestamps_callback(void (*fn)(void*,
namespace grpc_core {
void grpc_tcp_set_write_timestamps_callback(
void (*/*fn*/)(void*, grpc_core::Timestamps*, grpc_error* error)) {
void (*fn)(void*, grpc_core::Timestamps*, grpc_error* error)) {
// Cast value of fn to void to avoid unused parameter warning.
// Can't comment out the name because some compilers and formatters don't
// like the sequence */* , which would arise from */*fn*/.
(void)fn;
gpr_log(GPR_DEBUG, "Timestamps callback is not enabled for this platform");
}
} /* namespace grpc_core */

Loading…
Cancel
Save