From 35dc47a1c33ae01e93cbe57c6eeba63b3889f445 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 5 Jun 2020 15:08:01 +0200 Subject: [PATCH] fix error "passing 'const char *' to parameter of type 'void *' discards qualifiers" --- src/csharp/ext/grpc_csharp_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index a48d29af294..04eb68a3cda 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -224,7 +224,7 @@ grpcsharp_batch_context_reset(grpcsharp_batch_context* ctx) { grpcsharp_metadata_array_destroy_metadata_only( &(ctx->recv_status_on_client.trailing_metadata)); grpc_slice_unref(ctx->recv_status_on_client.status_details); - gpr_free(ctx->recv_status_on_client.error_string); + gpr_free((void*)ctx->recv_status_on_client.error_string); memset(ctx, 0, sizeof(grpcsharp_batch_context)); }