Merge pull request #20659 from vjpai/remove_warn_2

Remove unused parameter warnings (2 of 20)
pull/20665/head
Vijay Pai 5 years ago committed by GitHub
commit 2ba2bb402a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/cpp/server/server_context.cc
  2. 10
      test/core/bad_client/bad_client.cc
  3. 2
      test/core/bad_client/tests/bad_streaming_id.cc
  4. 2
      test/core/bad_client/tests/badreq.cc
  5. 2
      test/core/bad_client/tests/connection_prefix.cc
  6. 2
      test/core/bad_client/tests/duplicate_header.cc
  7. 2
      test/core/bad_client/tests/headers.cc
  8. 2
      test/core/bad_client/tests/initial_settings_frame.cc
  9. 6
      test/core/bad_client/tests/large_metadata.cc
  10. 2
      test/core/bad_client/tests/out_of_bounds.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));
}

@ -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<gpr_event*>(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<gpr_event*>(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;

@ -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)

@ -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)

@ -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)

@ -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;

@ -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)

@ -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)

@ -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;

@ -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)

Loading…
Cancel
Save