diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-04 09:54:51 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-04 09:54:51 -0500 |
commit | 07e06b335d8e044062818d2c5ae3e36a4834640f (patch) | |
tree | 9d8db6bc9b763451b68b71e046458097306b3115 /src/test/test_config.c | |
parent | 9619c395ac7e2a8c2e57f55cd1885fe5f8e5f8b5 (diff) | |
download | tor-07e06b335d8e044062818d2c5ae3e36a4834640f.tar.gz tor-07e06b335d8e044062818d2c5ae3e36a4834640f.zip |
Fix unused-argument warnings
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 1ecb816352..71c338e5f8 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -572,6 +572,11 @@ static void pt_kickstart_proxy_mock(const smartlist_t *transport_list, 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; } @@ -580,6 +585,12 @@ transport_add_from_config_mock(const tor_addr_t *addr, uint16_t port, const char *name, 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; return 0; @@ -588,6 +599,9 @@ transport_add_from_config_mock(const tor_addr_t *addr, static int transport_is_needed_mock(const char *transport_name) { + (void) transport_name; + /* XXXX check that arg is as expected. */ + ++transport_is_needed_mock_call_count; return transport_is_needed_mock_return; @@ -601,6 +615,8 @@ transport_is_needed_mock(const char *transport_name) static void test_config_parse_transport_plugin_line(void *arg) { + (void)arg; + or_options_t *options = get_options_mutable(); int r, tmp; int old_pt_kickstart_proxy_mock_call_count; |