diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index ff5b80910b6..143fa3f8c98 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -73,7 +73,7 @@ class ServerContext::CompletionOp final // This should always be arena allocated in the call, so override delete. // But this class is not trivially destructible, so must actually call delete // before allowing the arena to be freed - static void operator delete(void* ptr, std::size_t size) { + static void operator delete(void* /*ptr*/, std::size_t size) { assert(size == sizeof(CompletionOp)); } diff --git a/test/core/bad_client/bad_client.cc b/test/core/bad_client/bad_client.cc index 26550a2a701..ba402f2a3fe 100644 --- a/test/core/bad_client/bad_client.cc +++ b/test/core/bad_client/bad_client.cc @@ -57,7 +57,7 @@ static void thd_func(void* arg) { } /* Sets the done_write event */ -static void set_done_write(void* arg, grpc_error* error) { +static void set_done_write(void* arg, grpc_error* /*error*/) { gpr_event* done_write = static_cast(arg); gpr_event_set(done_write, (void*)1); } @@ -70,7 +70,7 @@ static void server_setup_transport(void* ts, grpc_transport* transport) { } /* Sets the read_done event */ -static void set_read_done(void* arg, grpc_error* error) { +static void set_read_done(void* arg, grpc_error* /*error*/) { gpr_event* read_done = static_cast(arg); gpr_event_set(read_done, (void*)1); } @@ -252,7 +252,7 @@ void grpc_run_bad_client_test( } bool client_connection_preface_validator(grpc_slice_buffer* incoming, - void* arg) { + void* /*arg*/) { if (incoming->count < 1) { return false; } @@ -278,7 +278,7 @@ grpc_bad_client_arg connection_preface_arg = { client_connection_preface_validator, nullptr, CONNECTION_PREFACE_FROM_CLIENT, sizeof(CONNECTION_PREFACE_FROM_CLIENT) - 1}; -bool rst_stream_client_validator(grpc_slice_buffer* incoming, void* arg) { +bool rst_stream_client_validator(grpc_slice_buffer* incoming, void* /*arg*/) { // Get last frame from incoming slice buffer. grpc_slice_buffer last_frame_buffer; grpc_slice_buffer_init(&last_frame_buffer); @@ -311,7 +311,7 @@ static void* tag(intptr_t t) { return (void*)t; } void server_verifier_request_call(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { grpc_call_error error; grpc_call* s; grpc_call_details call_details; diff --git a/test/core/bad_client/tests/bad_streaming_id.cc b/test/core/bad_client/tests/bad_streaming_id.cc index 287db433880..b63fccd8d25 100644 --- a/test/core/bad_client/tests/bad_streaming_id.cc +++ b/test/core/bad_client/tests/bad_streaming_id.cc @@ -75,7 +75,7 @@ namespace { void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr) diff --git a/test/core/bad_client/tests/badreq.cc b/test/core/bad_client/tests/badreq.cc index c560dc5561c..cd6ed70c8cc 100644 --- a/test/core/bad_client/tests/badreq.cc +++ b/test/core/bad_client/tests/badreq.cc @@ -30,7 +30,7 @@ "\x00\x00\x00\x04\x00\x00\x00\x00\x00" /* settings frame */ static void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr) diff --git a/test/core/bad_client/tests/connection_prefix.cc b/test/core/bad_client/tests/connection_prefix.cc index 286a3ccafbb..b0b6ca67af4 100644 --- a/test/core/bad_client/tests/connection_prefix.cc +++ b/test/core/bad_client/tests/connection_prefix.cc @@ -20,7 +20,7 @@ #include "test/core/bad_client/bad_client.h" static void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr) diff --git a/test/core/bad_client/tests/duplicate_header.cc b/test/core/bad_client/tests/duplicate_header.cc index dfa6e518114..ae191330281 100644 --- a/test/core/bad_client/tests/duplicate_header.cc +++ b/test/core/bad_client/tests/duplicate_header.cc @@ -52,7 +52,7 @@ static void* tag(intptr_t t) { return (void*)t; } static void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { grpc_call_error error; grpc_call* s; grpc_call_details call_details; diff --git a/test/core/bad_client/tests/headers.cc b/test/core/bad_client/tests/headers.cc index 02ea7597502..ed6b533e230 100644 --- a/test/core/bad_client/tests/headers.cc +++ b/test/core/bad_client/tests/headers.cc @@ -24,7 +24,7 @@ "\x00\x00\x00\x04\x00\x00\x00\x00\x00" static void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr) diff --git a/test/core/bad_client/tests/initial_settings_frame.cc b/test/core/bad_client/tests/initial_settings_frame.cc index fcbb841331f..204bf735bfe 100644 --- a/test/core/bad_client/tests/initial_settings_frame.cc +++ b/test/core/bad_client/tests/initial_settings_frame.cc @@ -23,7 +23,7 @@ #define ONE_SETTING_HDR "\x00\x00\x06\x04\x00\x00\x00\x00\x00" static void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr) diff --git a/test/core/bad_client/tests/large_metadata.cc b/test/core/bad_client/tests/large_metadata.cc index 520a1af0c2d..686a701dfed 100644 --- a/test/core/bad_client/tests/large_metadata.cc +++ b/test/core/bad_client/tests/large_metadata.cc @@ -92,9 +92,9 @@ static void* tag(intptr_t t) { return (void*)t; } -static void server_verifier_sends_too_much_metadata(grpc_server* server, - grpc_completion_queue* cq, - void* registered_method) { +static void server_verifier_sends_too_much_metadata( + grpc_server* server, grpc_completion_queue* cq, + void* /*registered_method*/) { grpc_call_error error; grpc_call* s; grpc_call_details call_details; diff --git a/test/core/bad_client/tests/out_of_bounds.cc b/test/core/bad_client/tests/out_of_bounds.cc index b716e952bc1..1e5c8738f13 100644 --- a/test/core/bad_client/tests/out_of_bounds.cc +++ b/test/core/bad_client/tests/out_of_bounds.cc @@ -30,7 +30,7 @@ namespace { void verifier(grpc_server* server, grpc_completion_queue* cq, - void* registered_method) { + void* /*registered_method*/) { while (grpc_server_has_open_connections(server)) { GPR_ASSERT(grpc_completion_queue_next( cq, grpc_timeout_milliseconds_to_deadline(20), nullptr)