diff --git a/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc b/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc index 3ae64d6f205..11933f1fa91 100644 --- a/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc +++ b/test/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_test.cc @@ -444,7 +444,7 @@ static void alts_grpc_record_protocol_tests( alts_grpc_record_protocol_test_fixture_destroy(fixture_5); } -int main(int argc, char** argv) { +int main(int /*argc*/, char** /*argv*/) { alts_grpc_record_protocol_tests( &test_fixture_integrity_only_no_rekey_no_extra_copy_create); alts_grpc_record_protocol_tests(&test_fixture_integrity_only_rekey_create); diff --git a/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc b/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc index a40be7c2754..f730c9f0cff 100644 --- a/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc +++ b/test/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector_test.cc @@ -295,7 +295,7 @@ static void alts_zero_copy_protector_seal_unseal_large_buffer_tests( alts_zero_copy_grpc_protector_test_fixture_destroy(fixture); } -int main(int argc, char** argv) { +int main(int /*argc*/, char** /*argv*/) { alts_zero_copy_protector_seal_unseal_small_buffer_tests( /*enable_extra_copy=*/false); alts_zero_copy_protector_seal_unseal_small_buffer_tests( diff --git a/test/core/tsi/fake_transport_security_test.cc b/test/core/tsi/fake_transport_security_test.cc index 32361f19d3f..6ce53aa44f5 100644 --- a/test/core/tsi/fake_transport_security_test.cc +++ b/test/core/tsi/fake_transport_security_test.cc @@ -58,7 +58,7 @@ static void fake_test_check_handshaker_peers(tsi_test_fixture* fixture) { validate_handshaker_peers(fixture->server_result); } -static void fake_test_destruct(tsi_test_fixture* fixture) {} +static void fake_test_destruct(tsi_test_fixture* /*fixture*/) {} static const struct tsi_test_fixture_vtable vtable = { fake_test_setup_handshakers, fake_test_check_handshaker_peers, diff --git a/test/core/util/one_corpus_entry_fuzzer.cc b/test/core/util/one_corpus_entry_fuzzer.cc index c745eb5dc65..e2d7cdaf937 100644 --- a/test/core/util/one_corpus_entry_fuzzer.cc +++ b/test/core/util/one_corpus_entry_fuzzer.cc @@ -29,7 +29,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); extern bool squelch; extern bool leak_check; -int main(int argc, char** argv) { +int main(int /*argc*/, char** argv) { grpc_slice buffer; squelch = false; leak_check = false; diff --git a/test/core/util/reconnect_server.cc b/test/core/util/reconnect_server.cc index 03c088db772..80e4ad8060f 100644 --- a/test/core/util/reconnect_server.cc +++ b/test/core/util/reconnect_server.cc @@ -56,7 +56,7 @@ static void pretty_print_backoffs(reconnect_server* server) { } static void on_connect(void* arg, grpc_endpoint* tcp, - grpc_pollset* accepting_pollset, + grpc_pollset* /*accepting_pollset*/, grpc_tcp_server_acceptor* acceptor) { gpr_free(acceptor); char* peer; diff --git a/test/core/util/test_tcp_server.cc b/test/core/util/test_tcp_server.cc index d7803e53555..78117964381 100644 --- a/test/core/util/test_tcp_server.cc +++ b/test/core/util/test_tcp_server.cc @@ -34,7 +34,7 @@ #include "test/core/util/port.h" #include "test/core/util/test_config.h" -static void on_server_destroyed(void* data, grpc_error* error) { +static void on_server_destroyed(void* data, grpc_error* /*error*/) { test_tcp_server* server = static_cast(data); server->shutdown = 1; } @@ -87,8 +87,8 @@ void test_tcp_server_poll(test_tcp_server* server, int milliseconds) { gpr_mu_unlock(server->mu); } -static void do_nothing(void* arg, grpc_error* error) {} -static void finish_pollset(void* arg, grpc_error* error) { +static void do_nothing(void* /*arg*/, grpc_error* /*error*/) {} +static void finish_pollset(void* arg, grpc_error* /*error*/) { grpc_pollset_destroy(static_cast(arg)); } diff --git a/test/cpp/client/client_channel_stress_test.cc b/test/cpp/client/client_channel_stress_test.cc index 7b4d47276ef..ac4fb345f48 100644 --- a/test/cpp/client/client_channel_stress_test.cc +++ b/test/cpp/client/client_channel_stress_test.cc @@ -73,7 +73,7 @@ class BalancerServiceImpl : public LoadBalancer::Service { explicit BalancerServiceImpl(const std::vector& all_backend_ports) : all_backend_ports_(all_backend_ports) {} - Status BalanceLoad(ServerContext* context, Stream* stream) override { + Status BalanceLoad(ServerContext* /*context*/, Stream* stream) override { gpr_log(GPR_INFO, "LB[%p]: Start BalanceLoad.", this); LoadBalanceRequest request; stream->Read(&request); diff --git a/test/cpp/common/channel_arguments_test.cc b/test/cpp/common/channel_arguments_test.cc index 7fbed5ba3ea..8d7b9171cac 100644 --- a/test/cpp/common/channel_arguments_test.cc +++ b/test/cpp/common/channel_arguments_test.cc @@ -36,7 +36,7 @@ class TestSocketMutator : public grpc_socket_mutator { public: TestSocketMutator(); - bool MutateFd(int fd) { + bool MutateFd(int /*fd*/) { // Do nothing on the fd return true; } diff --git a/test/cpp/common/channel_filter_test.cc b/test/cpp/common/channel_filter_test.cc index 7bdd53f9e7a..230737e4100 100644 --- a/test/cpp/common/channel_filter_test.cc +++ b/test/cpp/common/channel_filter_test.cc @@ -28,7 +28,7 @@ class MyChannelData : public ChannelData { public: MyChannelData() {} - grpc_error* Init(grpc_channel_element* elem, + grpc_error* Init(grpc_channel_element* /*elem*/, grpc_channel_element_args* args) override { (void)args->channel_args; // Make sure field is available. return GRPC_ERROR_NONE; @@ -39,7 +39,7 @@ class MyCallData : public CallData { public: MyCallData() {} - grpc_error* Init(grpc_call_element* elem, + grpc_error* Init(grpc_call_element* /*elem*/, const grpc_call_element_args* args) override { (void)args->path; // Make sure field is available. return GRPC_ERROR_NONE; diff --git a/test/cpp/common/timer_test.cc b/test/cpp/common/timer_test.cc index 1abed1660e8..c36554ae0c8 100644 --- a/test/cpp/common/timer_test.cc +++ b/test/cpp/common/timer_test.cc @@ -176,7 +176,7 @@ TEST_F(TimerTest, DISABLED_CancelRace) { grpc_timer* arg = (i != 0) ? &timers[i - 1] : nullptr; grpc_timer_init(&timers[i], grpc_core::ExecCtx::Get()->Now() + 100, GRPC_CLOSURE_CREATE( - [](void* arg, grpc_error* error) { + [](void* arg, grpc_error* /*error*/) { grpc_timer* timer = static_cast(arg); if (timer) { grpc_timer_cancel(timer); @@ -206,7 +206,7 @@ TEST_F(TimerTest, DISABLED_CancelNextTimer) { } grpc_timer_init(&timers[i], grpc_core::ExecCtx::Get()->Now() + 100, GRPC_CLOSURE_CREATE( - [](void* arg, grpc_error* error) { + [](void* arg, grpc_error* /*error*/) { grpc_timer* timer = static_cast(arg); if (timer) { grpc_timer_cancel(timer);