Remove unused parameter warning (6 of 20)
This commit is contained in:
parent
a0ad4081cb
commit
92f7d65055
|
|
@ -74,7 +74,8 @@ static void client_setup_transport(void* ts, grpc_transport* transport) {
|
|||
}
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_socketpair(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_endpoint_pair* sfd =
|
||||
static_cast<grpc_endpoint_pair*>(gpr_malloc(sizeof(grpc_endpoint_pair)));
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ static void client_setup_transport(void* ts, grpc_transport* transport) {
|
|||
}
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_socketpair(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_endpoint_pair* sfd =
|
||||
static_cast<grpc_endpoint_pair*>(gpr_malloc(sizeof(grpc_endpoint_pair)));
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ static void client_setup_transport(void* ts, grpc_transport* transport) {
|
|||
}
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_socketpair(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_endpoint_pair* sfd =
|
||||
static_cast<grpc_endpoint_pair*>(gpr_malloc(sizeof(grpc_endpoint_pair)));
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ struct fullstack_secure_fixture_data {
|
|||
};
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_end2end_test_fixture f;
|
||||
int port = grpc_pick_unused_port_or_die();
|
||||
fullstack_secure_fixture_data* ffd =
|
||||
|
|
@ -66,8 +67,9 @@ static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
|||
return f;
|
||||
}
|
||||
|
||||
static void process_auth_failure(void* state, grpc_auth_context* ctx,
|
||||
const grpc_metadata* md, size_t md_count,
|
||||
static void process_auth_failure(void* state, grpc_auth_context* /*ctx*/,
|
||||
const grpc_metadata* /*md*/,
|
||||
size_t /*md_count*/,
|
||||
grpc_process_auth_metadata_done_cb cb,
|
||||
void* user_data) {
|
||||
GPR_ASSERT(state == nullptr);
|
||||
|
|
@ -136,7 +138,7 @@ static int server_authz_check_async(
|
|||
// Synchronous implementation of schedule field in
|
||||
// grpc_tls_credential_reload_config instance that is a part of client-side
|
||||
// grpc_tls_credentials_options instance.
|
||||
static int client_cred_reload_sync(void* config_user_data,
|
||||
static int client_cred_reload_sync(void* /*config_user_data*/,
|
||||
grpc_tls_credential_reload_arg* arg) {
|
||||
if (!arg->key_materials_config->pem_key_cert_pair_list().empty()) {
|
||||
arg->status = GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_UNCHANGED;
|
||||
|
|
@ -162,7 +164,7 @@ static int client_cred_reload_sync(void* config_user_data,
|
|||
// Synchronous implementation of schedule field in
|
||||
// grpc_tls_credential_reload_config instance that is a part of server-side
|
||||
// grpc_tls_credentials_options instance.
|
||||
static int server_cred_reload_sync(void* config_user_data,
|
||||
static int server_cred_reload_sync(void* /*config_user_data*/,
|
||||
grpc_tls_credential_reload_arg* arg) {
|
||||
if (!arg->key_materials_config->pem_key_cert_pair_list().empty()) {
|
||||
arg->status = GRPC_SSL_CERTIFICATE_CONFIG_RELOAD_UNCHANGED;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ struct fullstack_secure_fixture_data {
|
|||
};
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_end2end_test_fixture f;
|
||||
int port = grpc_pick_unused_port_or_die();
|
||||
fullstack_secure_fixture_data* ffd =
|
||||
|
|
@ -55,8 +56,9 @@ static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
|||
return f;
|
||||
}
|
||||
|
||||
static void process_auth_failure(void* state, grpc_auth_context* ctx,
|
||||
const grpc_metadata* md, size_t md_count,
|
||||
static void process_auth_failure(void* state, grpc_auth_context* /*ctx*/,
|
||||
const grpc_metadata* /*md*/,
|
||||
size_t /*md_count*/,
|
||||
grpc_process_auth_metadata_done_cb cb,
|
||||
void* user_data) {
|
||||
GPR_ASSERT(state == nullptr);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ ssl_server_certificate_config_callback(
|
|||
}
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_end2end_test_fixture f;
|
||||
int port = grpc_pick_unused_port_or_die();
|
||||
fullstack_secure_fixture_data* ffd =
|
||||
|
|
@ -75,8 +76,9 @@ static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
|||
return f;
|
||||
}
|
||||
|
||||
static void process_auth_failure(void* state, grpc_auth_context* ctx,
|
||||
const grpc_metadata* md, size_t md_count,
|
||||
static void process_auth_failure(void* state, grpc_auth_context* /*ctx*/,
|
||||
const grpc_metadata* /*md*/,
|
||||
size_t /*md_count*/,
|
||||
grpc_process_auth_metadata_done_cb cb,
|
||||
void* user_data) {
|
||||
GPR_ASSERT(state == nullptr);
|
||||
|
|
|
|||
|
|
@ -91,8 +91,9 @@ static grpc_end2end_test_fixture chttp2_create_fixture_secure_fullstack(
|
|||
return f;
|
||||
}
|
||||
|
||||
static void process_auth_failure(void* state, grpc_auth_context* ctx,
|
||||
const grpc_metadata* md, size_t md_count,
|
||||
static void process_auth_failure(void* state, grpc_auth_context* /*ctx*/,
|
||||
const grpc_metadata* /*md*/,
|
||||
size_t /*md_count*/,
|
||||
grpc_process_auth_metadata_done_cb cb,
|
||||
void* user_data) {
|
||||
GPR_ASSERT(state == nullptr);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@ typedef struct fullstack_fixture_data {
|
|||
static int unique = 1;
|
||||
|
||||
static grpc_end2end_test_fixture chttp2_create_fixture_fullstack(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_end2end_test_fixture f;
|
||||
fullstack_fixture_data* ffd = static_cast<fullstack_fixture_data*>(
|
||||
gpr_malloc(sizeof(fullstack_fixture_data)));
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ typedef struct inproc_fixture_data {
|
|||
} inproc_fixture_data;
|
||||
|
||||
static grpc_end2end_test_fixture inproc_create_fixture(
|
||||
grpc_channel_args* client_args, grpc_channel_args* server_args) {
|
||||
grpc_channel_args* /*client_args*/,
|
||||
grpc_channel_args* /*server_args*/) {
|
||||
grpc_end2end_test_fixture f;
|
||||
inproc_fixture_data* ffd = static_cast<inproc_fixture_data*>(
|
||||
gpr_malloc(sizeof(inproc_fixture_data)));
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ using grpc_core::testing::input_stream;
|
|||
bool squelch = true;
|
||||
bool leak_check = true;
|
||||
|
||||
static void dont_log(gpr_log_func_args* args) {}
|
||||
static void dont_log(gpr_log_func_args* /*args*/) {}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// global state
|
||||
|
|
@ -358,8 +358,8 @@ static void finish_resolve(void* arg, grpc_error* error) {
|
|||
grpc_core::Delete(r);
|
||||
}
|
||||
|
||||
void my_resolve_address(const char* addr, const char* default_port,
|
||||
grpc_pollset_set* interested_parties,
|
||||
void my_resolve_address(const char* addr, const char* /*default_port*/,
|
||||
grpc_pollset_set* /*interested_parties*/,
|
||||
grpc_closure* on_done,
|
||||
grpc_resolved_addresses** addrs) {
|
||||
addr_req* r = grpc_core::New<addr_req>();
|
||||
|
|
@ -375,11 +375,12 @@ static grpc_address_resolver_vtable fuzzer_resolver = {my_resolve_address,
|
|||
nullptr};
|
||||
|
||||
grpc_ares_request* my_dns_lookup_ares_locked(
|
||||
const char* dns_server, const char* addr, const char* default_port,
|
||||
grpc_pollset_set* interested_parties, grpc_closure* on_done,
|
||||
const char* /*dns_server*/, const char* addr,
|
||||
const char* /*default_port*/, grpc_pollset_set* /*interested_parties*/,
|
||||
grpc_closure* on_done,
|
||||
grpc_core::UniquePtr<grpc_core::ServerAddressList>* addresses,
|
||||
bool check_grpclb, char** service_config_json, int query_timeout,
|
||||
grpc_combiner* combiner) {
|
||||
bool /*check_grpclb*/, char** /*service_config_json*/,
|
||||
int /*query_timeout*/, grpc_combiner* /*combiner*/) {
|
||||
addr_req* r = static_cast<addr_req*>(gpr_malloc(sizeof(*r)));
|
||||
r->addr = gpr_strdup(addr);
|
||||
r->on_done = on_done;
|
||||
|
|
@ -450,9 +451,9 @@ static void sched_connect(grpc_closure* closure, grpc_endpoint** ep,
|
|||
}
|
||||
|
||||
static void my_tcp_client_connect(grpc_closure* closure, grpc_endpoint** ep,
|
||||
grpc_pollset_set* interested_parties,
|
||||
const grpc_channel_args* channel_args,
|
||||
const grpc_resolved_address* addr,
|
||||
grpc_pollset_set* /*interested_parties*/,
|
||||
const grpc_channel_args* /*channel_args*/,
|
||||
const grpc_resolved_address* /*addr*/,
|
||||
grpc_millis deadline) {
|
||||
sched_connect(closure, ep,
|
||||
grpc_millis_to_timespec(deadline, GPR_CLOCK_MONOTONIC));
|
||||
|
|
@ -481,7 +482,7 @@ static void assert_success_and_decrement(void* counter, bool success) {
|
|||
--*static_cast<int*>(counter);
|
||||
}
|
||||
|
||||
static void decrement(void* counter, bool success) {
|
||||
static void decrement(void* counter, bool /*success*/) {
|
||||
--*static_cast<int*>(counter);
|
||||
}
|
||||
|
||||
|
|
@ -662,7 +663,7 @@ typedef struct {
|
|||
uint8_t has_ops;
|
||||
} batch_info;
|
||||
|
||||
static void finished_batch(void* p, bool success) {
|
||||
static void finished_batch(void* p, bool /*success*/) {
|
||||
batch_info* bi = static_cast<batch_info*>(p);
|
||||
--bi->cs->pending_ops;
|
||||
if ((bi->has_ops & (1u << GRPC_OP_RECV_MESSAGE)) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue