[tor-commits] [tor/master] fix a windows unused var warning

nickm at torproject.org nickm at torproject.org
Sun Jun 28 06:18:23 UTC 2015


commit cc3a791d5509d16bcf7a5a3d2bc1ec06dc56419c
Author: Nick Mathewson <nickm at torproject.org>
Date:   Sun Jun 28 02:18:15 2015 -0400

    fix a windows unused var warning
---
 src/or/connection.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/connection.c b/src/or/connection.c
index 7089292..0ecf5d1 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1085,6 +1085,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
   connection_t *conn = NULL;
   tor_socket_t s = TOR_INVALID_SOCKET;  /* the socket we're going to make */
   or_options_t const *options = get_options();
+  (void) options; /* Windows doesn't use this. */
 #if defined(HAVE_PWD_H) && defined(HAVE_SYS_UN_H)
   const struct passwd *pw = NULL;
 #endif



More information about the tor-commits mailing list