diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-04 22:42:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-04 22:42:13 +0000 |
commit | 853e2d99b64cc886377f95b8f74e9f549769c410 (patch) | |
tree | 3c5949273d8d13229b51bdb8a2ecf4581d27dd18 /src/or/rendclient.c | |
parent | c4647545a02bd5f6b28bdb2bcd50a915ef04cf8c (diff) | |
download | tor-853e2d99b64cc886377f95b8f74e9f549769c410.tar.gz tor-853e2d99b64cc886377f95b8f74e9f549769c410.zip |
Add a new warning to our "warn a lot" list: unused parameters. This means we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.)
svn:r6532
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r-- | src/or/rendclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index ec6f299165..2b3f047450 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -183,6 +183,7 @@ rend_client_introduction_acked(circuit_t *circ, const char *request, size_t request_len) { circuit_t *rendcirc; + (void) request; // XXXX Use this. if (circ->purpose != CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT) { log_warn(LD_PROTOCOL, @@ -342,6 +343,8 @@ int rend_client_rendezvous_acked(circuit_t *circ, const char *request, size_t request_len) { + (void) request; + (void) request_len; /* we just got an ack for our establish-rendezvous. switch purposes. */ if (circ->purpose != CIRCUIT_PURPOSE_C_ESTABLISH_REND) { log_warn(LD_PROTOCOL,"Got a rendezvous ack when we weren't expecting one. " |