[tor-commits] [tor/master] Fix unused-argument warnings

nickm at torproject.org nickm at torproject.org
Tue Nov 4 14:56:57 UTC 2014


commit 07e06b335d8e044062818d2c5ae3e36a4834640f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Nov 4 09:54:51 2014 -0500

    Fix unused-argument warnings
---
 src/test/test_config.c |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/test/test_config.c b/src/test/test_config.c
index 1ecb816..71c338e 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;





More information about the tor-commits mailing list