Fix unused-argument warnings

This commit is contained in:
Nick Mathewson 2014-11-04 09:54:51 -05:00
parent 9619c395ac
commit 07e06b335d

View File

@ -572,6 +572,11 @@ static void
pt_kickstart_proxy_mock(const smartlist_t *transport_list, pt_kickstart_proxy_mock(const smartlist_t *transport_list,
char **proxy_argv, int is_server) char **proxy_argv, int is_server)
{ {
(void) transport_list;
(void) proxy_argv;
(void) is_server;
/* XXXX check that args are as expected. */
++pt_kickstart_proxy_mock_call_count; ++pt_kickstart_proxy_mock_call_count;
} }
@ -580,6 +585,12 @@ transport_add_from_config_mock(const tor_addr_t *addr,
uint16_t port, const char *name, uint16_t port, const char *name,
int socks_ver) int socks_ver)
{ {
(void) addr;
(void) port;
(void) name;
(void) socks_ver;
/* XXXX check that args are as expected. */
++transport_add_from_config_mock_call_count; ++transport_add_from_config_mock_call_count;
return 0; return 0;
@ -588,6 +599,9 @@ transport_add_from_config_mock(const tor_addr_t *addr,
static int static int
transport_is_needed_mock(const char *transport_name) transport_is_needed_mock(const char *transport_name)
{ {
(void) transport_name;
/* XXXX check that arg is as expected. */
++transport_is_needed_mock_call_count; ++transport_is_needed_mock_call_count;
return transport_is_needed_mock_return; return transport_is_needed_mock_return;
@ -601,6 +615,8 @@ transport_is_needed_mock(const char *transport_name)
static void static void
test_config_parse_transport_plugin_line(void *arg) test_config_parse_transport_plugin_line(void *arg)
{ {
(void)arg;
or_options_t *options = get_options_mutable(); or_options_t *options = get_options_mutable();
int r, tmp; int r, tmp;
int old_pt_kickstart_proxy_mock_call_count; int old_pt_kickstart_proxy_mock_call_count;