Remove unused parameter warning (8 of 20)

pull/20653/head
Vijay Pai 5 years ago
parent a0ad4081cb
commit 826732a8be
  1. 18
      test/core/end2end/tests/filter_latency.cc
  2. 10
      test/core/end2end/tests/filter_status_code.cc
  3. 2
      test/core/end2end/tests/no_error_on_hotpath.cc
  4. 2
      test/core/end2end/tests/no_logging.cc
  5. 4
      test/core/end2end/tests/stream_compression_compressed_payload.cc
  6. 2
      test/core/end2end/tests/stream_compression_payload.cc
  7. 2
      test/core/fling/fling_stream_test.cc
  8. 2
      test/core/fling/fling_test.cc
  9. 2
      test/core/fling/server.cc
  10. 6
      test/core/gpr/log_test.cc

@ -247,33 +247,33 @@ static void test_request(grpc_end2end_test_config config) {
* Test latency filter
*/
static grpc_error* init_call_elem(grpc_call_element* elem,
const grpc_call_element_args* args) {
static grpc_error* init_call_elem(grpc_call_element* /*elem*/,
const grpc_call_element_args* /*args*/) {
return GRPC_ERROR_NONE;
}
static void client_destroy_call_elem(grpc_call_element* elem,
static void client_destroy_call_elem(grpc_call_element* /*elem*/,
const grpc_call_final_info* final_info,
grpc_closure* ignored) {
grpc_closure* /*ignored*/) {
gpr_mu_lock(&g_mu);
g_client_latency = final_info->stats.latency;
gpr_mu_unlock(&g_mu);
}
static void server_destroy_call_elem(grpc_call_element* elem,
static void server_destroy_call_elem(grpc_call_element* /*elem*/,
const grpc_call_final_info* final_info,
grpc_closure* ignored) {
grpc_closure* /*ignored*/) {
gpr_mu_lock(&g_mu);
g_server_latency = final_info->stats.latency;
gpr_mu_unlock(&g_mu);
}
static grpc_error* init_channel_elem(grpc_channel_element* elem,
grpc_channel_element_args* args) {
static grpc_error* init_channel_elem(grpc_channel_element* /*elem*/,
grpc_channel_element_args* /*args*/) {
return GRPC_ERROR_NONE;
}
static void destroy_channel_elem(grpc_channel_element* elem) {}
static void destroy_channel_elem(grpc_channel_element* /*elem*/) {}
static const grpc_channel_filter test_client_filter = {
grpc_call_next_op,

@ -284,7 +284,7 @@ static grpc_error* init_call_elem(grpc_call_element* elem,
static void client_destroy_call_elem(grpc_call_element* elem,
const grpc_call_final_info* final_info,
grpc_closure* ignored) {
grpc_closure* /*ignored*/) {
final_status_data* data = static_cast<final_status_data*>(elem->call_data);
gpr_mu_lock(&g_mu);
// Some fixtures, like proxies, will spawn intermidiate calls
@ -299,7 +299,7 @@ static void client_destroy_call_elem(grpc_call_element* elem,
static void server_destroy_call_elem(grpc_call_element* elem,
const grpc_call_final_info* final_info,
grpc_closure* ignored) {
grpc_closure* /*ignored*/) {
final_status_data* data = static_cast<final_status_data*>(elem->call_data);
gpr_mu_lock(&g_mu);
// Some fixtures, like proxies, will spawn intermidiate calls
@ -312,12 +312,12 @@ static void server_destroy_call_elem(grpc_call_element* elem,
gpr_mu_unlock(&g_mu);
}
static grpc_error* init_channel_elem(grpc_channel_element* elem,
grpc_channel_element_args* args) {
static grpc_error* init_channel_elem(grpc_channel_element* /*elem*/,
grpc_channel_element_args* /*args*/) {
return GRPC_ERROR_NONE;
}
static void destroy_channel_elem(grpc_channel_element* elem) {}
static void destroy_channel_elem(grpc_channel_element* /*elem*/) {}
static const grpc_channel_filter test_client_filter = {
grpc_call_next_op,

@ -87,7 +87,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;

@ -113,7 +113,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;

@ -269,8 +269,8 @@ static void request_with_payload_template(
uint32_t client_send_flags_bitmask,
grpc_compression_algorithm default_client_channel_compression_algorithm,
grpc_compression_algorithm default_server_channel_compression_algorithm,
grpc_compression_algorithm expected_client_compression_algorithm,
grpc_compression_algorithm expected_server_compression_algorithm,
grpc_compression_algorithm /*expected_client_compression_algorithm*/,
grpc_compression_algorithm /*expected_server_compression_algorithm*/,
grpc_metadata* client_init_metadata, bool set_server_level,
grpc_compression_level server_compression_level,
bool send_message_before_initial_metadata,

@ -104,7 +104,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

@ -27,7 +27,7 @@
#include "test/core/util/port.h"
#include "test/core/util/subprocess.h"
int main(int argc, char** argv) {
int main(int /*argc*/, char** argv) {
char* me = argv[0];
char* lslash = strrchr(me, '/');
char root[1024];

@ -28,7 +28,7 @@
#include "test/core/util/port.h"
#include "test/core/util/subprocess.h"
int main(int argc, const char** argv) {
int main(int /*argc*/, const char** argv) {
const char* me = argv[0];
const char* lslash = strrchr(me, '/');
char root[1024];

@ -167,7 +167,7 @@ static void start_send_status(void) {
/* We have some sort of deadlock, so let's not exit gracefully for now.
When that is resolved, please remove the #include <unistd.h> above. */
static void sigint_handler(int x) { _exit(0); }
static void sigint_handler(int /*x*/) { _exit(0); }
int main(int argc, char** argv) {
grpc_event ev;

@ -37,11 +37,13 @@ static void test_callback(gpr_log_func_args* args) {
GPR_ASSERT(0 == strcmp(args->message, "hello 1 2 3"));
}
static void test_should_log(gpr_log_func_args* args) {
static void test_should_log(gpr_log_func_args* /*args*/) {
log_func_reached = true;
}
static void test_should_not_log(gpr_log_func_args* args) { GPR_ASSERT(false); }
static void test_should_not_log(gpr_log_func_args* /*args*/) {
GPR_ASSERT(false);
}
#define test_log_function_reached(SEVERITY) \
gpr_set_log_function(test_should_log); \

Loading…
Cancel
Save