Remove unused parameter warning (9 of 20)

pull/20652/head
Vijay Pai 5 years ago
parent a0ad4081cb
commit 53e7e9f3fe
  1. 2
      test/core/gpr/tls_test.cc
  2. 2
      test/core/gprpp/global_config_env_test.cc
  3. 2
      test/core/gprpp/thd_test.cc
  4. 4
      test/core/handshake/client_ssl.cc
  5. 10
      test/core/handshake/readahead_handshaker_server_ssl.cc
  6. 2
      test/core/handshake/server_ssl.cc
  7. 2
      test/core/handshake/verify_peer_options.cc
  8. 2
      test/core/http/httpcli_test.cc
  9. 2
      test/core/http/httpscli_test.cc
  10. 2
      test/core/iomgr/buffer_list_test.cc

@ -33,7 +33,7 @@
GPR_TLS_DECL(test_var);
static void thd_body(void* arg) {
static void thd_body(void* /*arg*/) {
intptr_t i;
GPR_ASSERT(gpr_tls_get(&test_var) == 0);

@ -39,7 +39,7 @@ bool IsConfigErrorCalled() { return g_config_error_function_called; }
// This function is for preventing the program from invoking
// an error handler due to configuration error and
// make test routines know whether there is error.
void FakeConfigErrorFunction(const char* error_message) {
void FakeConfigErrorFunction(const char* /*error_message*/) {
g_config_error_function_called = true;
}

@ -75,7 +75,7 @@ static void test1(void) {
gpr_cv_destroy(&t.done_cv);
}
static void thd_body2(void* v) {}
static void thd_body2(void* /*v*/) {}
/* Test that we can create a number of threads and join them. */
static void test2(void) {

@ -98,7 +98,7 @@ static int create_socket(int* out_port) {
// Server callback during ALPN negotiation. See man page for
// SSL_CTX_set_alpn_select_cb.
static int alpn_select_cb(SSL* ssl, const uint8_t** out, uint8_t* out_len,
static int alpn_select_cb(SSL* /*ssl*/, const uint8_t** out, uint8_t* out_len,
const uint8_t* in, unsigned in_len, void* arg) {
const uint8_t* alpn_preferred = static_cast<const uint8_t*>(arg);
@ -309,7 +309,7 @@ static bool client_ssl_test(char* server_alpn_preferred) {
return success;
}
int main(int argc, char* argv[]) {
int main(int /*argc*/, char* /*argv*/ []) {
// Handshake succeeeds when the server has grpc-exp as the ALPN preference.
GPR_ASSERT(client_ssl_test(const_cast<char*>("grpc-exp")));
// Handshake succeeeds when the server has h2 as the ALPN preference. This

@ -55,8 +55,8 @@ class ReadAheadHandshaker : public Handshaker {
public:
virtual ~ReadAheadHandshaker() {}
const char* name() const override { return "read_ahead"; }
void Shutdown(grpc_error* why) override {}
void DoHandshake(grpc_tcp_server_acceptor* acceptor,
void Shutdown(grpc_error* /*why*/) override {}
void DoHandshake(grpc_tcp_server_acceptor* /*acceptor*/,
grpc_closure* on_handshake_done,
HandshakerArgs* args) override {
grpc_endpoint_read(args->endpoint, args->read_buffer, on_handshake_done,
@ -66,8 +66,8 @@ class ReadAheadHandshaker : public Handshaker {
class ReadAheadHandshakerFactory : public HandshakerFactory {
public:
void AddHandshakers(const grpc_channel_args* args,
grpc_pollset_set* interested_parties,
void AddHandshakers(const grpc_channel_args* /*args*/,
grpc_pollset_set* /*interested_parties*/,
HandshakeManager* handshake_mgr) override {
handshake_mgr->Add(MakeRefCounted<ReadAheadHandshaker>());
}
@ -76,7 +76,7 @@ class ReadAheadHandshakerFactory : public HandshakerFactory {
} // namespace grpc_core
int main(int argc, char* argv[]) {
int main(int /*argc*/, char* /*argv*/ []) {
using namespace grpc_core;
grpc_init();
HandshakerRegistry::RegisterHandshakerFactory(

@ -36,7 +36,7 @@
#include "test/core/handshake/server_ssl_common.h"
int main(int argc, char* argv[]) {
int main(int /*argc*/, char* /*argv*/ []) {
// Handshake succeeeds when the client supplies the standard ALPN list.
const char* full_alpn_list[] = {"grpc-exp", "h2"};
GPR_ASSERT(server_ssl_test(full_alpn_list, 2, "grpc-exp"));

@ -228,7 +228,7 @@ static int verify_callback(const char* target_host, const char* target_pem,
static void verify_destruct(void* userdata) { destruct_userdata = userdata; }
int main(int argc, char* argv[]) {
int main(int /*argc*/, char* /*argv*/ []) {
int userdata = 42;
verify_peer_options verify_options;

@ -138,7 +138,7 @@ static void test_post(int port) {
grpc_http_response_destroy(&response);
}
static void destroy_pops(void* p, grpc_error* error) {
static void destroy_pops(void* p, grpc_error* /*error*/) {
grpc_pollset_destroy(
grpc_polling_entity_pollset(static_cast<grpc_polling_entity*>(p)));
}

@ -143,7 +143,7 @@ static void test_post(int port) {
grpc_http_response_destroy(&response);
}
static void destroy_pops(void* p, grpc_error* error) {
static void destroy_pops(void* p, grpc_error* /*error*/) {
grpc_pollset_destroy(
grpc_polling_entity_pollset(static_cast<grpc_polling_entity*>(p)));
}

@ -27,7 +27,7 @@
#ifdef GRPC_LINUX_ERRQUEUE
static void TestShutdownFlushesListVerifier(void* arg,
grpc_core::Timestamps* ts,
grpc_core::Timestamps* /*ts*/,
grpc_error* error) {
GPR_ASSERT(error == GRPC_ERROR_NONE);
GPR_ASSERT(arg != nullptr);

Loading…
Cancel
Save