From c07747be2e5bd4b9311c260b49f4007975138005 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 29 Dec 2014 09:29:32 -0500 Subject: [PATCH] Fix compilation errors in resolvemyaddr tests --- src/test/test_config.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/test_config.c b/src/test/test_config.c index fa68129126..4217720174 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -680,6 +680,8 @@ static int n_gethostname_failure = 0; static int tor_gethostname_failure(char *name, size_t namelen) { + (void)name; + (void)namelen; n_gethostname_failure++; return -1; @@ -765,6 +767,8 @@ static int get_interface_address6_failure(int severity, sa_family_t family, tor_addr_t *addr) { + (void)severity; + (void)addr; n_get_interface_address6_failure++; last_address6_family = family; @@ -774,8 +778,6 @@ get_interface_address6_failure(int severity, sa_family_t family, static void test_config_resolve_my_address(void *arg) { - (void)arg; - or_options_t *options; uint32_t resolved_addr; const char *method_used; @@ -792,6 +794,8 @@ test_config_resolve_my_address(void *arg) int prev_n_get_interface_address6; int prev_n_get_interface_address6_failure; + (void)arg; + options = options_new(); options_init(options);