From d469403b6e82c3a8101975985bf8aa6c5ce6ac89 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Mon, 21 Oct 2019 09:16:34 -0700 Subject: [PATCH] Remove unused-parameter warnings, round 2 (16 of 19) --- test/core/end2end/tests/max_concurrent_streams.cc | 2 +- test/core/end2end/tests/max_connection_idle.cc | 2 +- test/core/end2end/tests/negative_deadline.cc | 2 +- test/core/end2end/tests/payload.cc | 2 +- test/core/end2end/tests/proxy_auth.cc | 2 +- test/core/end2end/tests/registered_call.cc | 2 +- test/core/end2end/tests/server_finishes_request.cc | 2 +- test/core/end2end/tests/simple_delayed_request.cc | 2 +- test/core/gpr/alloc_test.cc | 2 +- test/core/iomgr/buffer_list_test.cc | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/core/end2end/tests/max_concurrent_streams.cc b/test/core/end2end/tests/max_concurrent_streams.cc index 86a8d224435..b3cc7af02ba 100644 --- a/test/core/end2end/tests/max_concurrent_streams.cc +++ b/test/core/end2end/tests/max_concurrent_streams.cc @@ -83,7 +83,7 @@ static void end_test(grpc_end2end_test_fixture* f) { grpc_completion_queue_destroy(f->shutdown_cq); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f) { grpc_call* c; grpc_call* s; diff --git a/test/core/end2end/tests/max_connection_idle.cc b/test/core/end2end/tests/max_connection_idle.cc index faa1383207d..87cbeff049d 100644 --- a/test/core/end2end/tests/max_connection_idle.cc +++ b/test/core/end2end/tests/max_connection_idle.cc @@ -42,7 +42,7 @@ static void drain_cq(grpc_completion_queue* cq) { } while (ev.type != GRPC_QUEUE_SHUTDOWN); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture* f) { grpc_call* c; grpc_call* s; diff --git a/test/core/end2end/tests/negative_deadline.cc b/test/core/end2end/tests/negative_deadline.cc index 2b2ff126c4a..464267c92f1 100644 --- a/test/core/end2end/tests/negative_deadline.cc +++ b/test/core/end2end/tests/negative_deadline.cc @@ -86,7 +86,7 @@ static void end_test(grpc_end2end_test_fixture* f) { grpc_completion_queue_destroy(f->shutdown_cq); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f, size_t num_ops) { grpc_call* c; cq_verifier* cqv = cq_verifier_create(f.cq); diff --git a/test/core/end2end/tests/payload.cc b/test/core/end2end/tests/payload.cc index cb6eb47de93..6e2bc1690b6 100644 --- a/test/core/end2end/tests/payload.cc +++ b/test/core/end2end/tests/payload.cc @@ -100,7 +100,7 @@ static grpc_slice generate_random_slice() { return out; } -static void request_response_with_payload(grpc_end2end_test_config config, +static void request_response_with_payload(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f) { /* Create large request and response bodies. These are big enough to require * multiple round trips to deliver to the peer, and their exact contents of diff --git a/test/core/end2end/tests/proxy_auth.cc b/test/core/end2end/tests/proxy_auth.cc index 3b12869d2f0..3e9d7a3388d 100644 --- a/test/core/end2end/tests/proxy_auth.cc +++ b/test/core/end2end/tests/proxy_auth.cc @@ -90,7 +90,7 @@ static void end_test(grpc_end2end_test_fixture* f) { grpc_completion_queue_destroy(f->shutdown_cq); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f) { grpc_call* c; grpc_call* s; diff --git a/test/core/end2end/tests/registered_call.cc b/test/core/end2end/tests/registered_call.cc index 3e05fd1421f..badd802335b 100644 --- a/test/core/end2end/tests/registered_call.cc +++ b/test/core/end2end/tests/registered_call.cc @@ -86,7 +86,7 @@ static void end_test(grpc_end2end_test_fixture* f) { grpc_completion_queue_destroy(f->shutdown_cq); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f, void* rc) { grpc_call* c; grpc_call* s; diff --git a/test/core/end2end/tests/server_finishes_request.cc b/test/core/end2end/tests/server_finishes_request.cc index c81b309a1e6..9ee23c91ea0 100644 --- a/test/core/end2end/tests/server_finishes_request.cc +++ b/test/core/end2end/tests/server_finishes_request.cc @@ -85,7 +85,7 @@ static void end_test(grpc_end2end_test_fixture* f) { grpc_completion_queue_destroy(f->shutdown_cq); } -static void simple_request_body(grpc_end2end_test_config config, +static void simple_request_body(grpc_end2end_test_config /*config*/, grpc_end2end_test_fixture f) { grpc_call* c; grpc_call* s; diff --git a/test/core/end2end/tests/simple_delayed_request.cc b/test/core/end2end/tests/simple_delayed_request.cc index 8d116999459..dc4fdbd6e81 100644 --- a/test/core/end2end/tests/simple_delayed_request.cc +++ b/test/core/end2end/tests/simple_delayed_request.cc @@ -75,7 +75,7 @@ static void simple_delayed_request_body(grpc_end2end_test_config config, grpc_end2end_test_fixture* f, grpc_channel_args* client_args, grpc_channel_args* server_args, - long delay_us) { + long /*delay_us*/) { grpc_call* c; grpc_call* s; cq_verifier* cqv = cq_verifier_create(f->cq); diff --git a/test/core/gpr/alloc_test.cc b/test/core/gpr/alloc_test.cc index 0b110e2b77d..55fe6d95a8f 100644 --- a/test/core/gpr/alloc_test.cc +++ b/test/core/gpr/alloc_test.cc @@ -25,7 +25,7 @@ static void* fake_malloc(size_t size) { return (void*)size; } -static void* fake_realloc(void* addr, size_t size) { return (void*)size; } +static void* fake_realloc(void* /*addr*/, size_t size) { return (void*)size; } static void fake_free(void* addr) { *(static_cast(addr)) = static_cast(0xdeadd00d); diff --git a/test/core/iomgr/buffer_list_test.cc b/test/core/iomgr/buffer_list_test.cc index 7602067528d..2c179c4a047 100644 --- a/test/core/iomgr/buffer_list_test.cc +++ b/test/core/iomgr/buffer_list_test.cc @@ -131,6 +131,6 @@ int main(int argc, char** argv) { #else /* GRPC_LINUX_ERRQUEUE */ -int main(int argc, char** argv) { return 0; } +int main(int /*argc*/, char** /*argv*/) { return 0; } #endif /* GRPC_LINUX_ERRQUEUE */