summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-06-04 22:42:13 +0000
committerNick Mathewson <nickm@torproject.org>2006-06-04 22:42:13 +0000
commit853e2d99b64cc886377f95b8f74e9f549769c410 (patch)
tree3c5949273d8d13229b51bdb8a2ecf4581d27dd18 /src/or/circuituse.c
parentc4647545a02bd5f6b28bdb2bcd50a915ef04cf8c (diff)
downloadtor-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/circuituse.c')
-rw-r--r--src/or/circuituse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 0cd5ee41ba..ac77c35801 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -605,6 +605,10 @@ circuit_testing_failed(circuit_t *circ, int at_last_hop)
log_info(LD_GENERAL,
"Our testing circuit (to see if your ORPort is reachable) "
"has failed. I'll try again later.");
+
+ /* These aren't used yet. */
+ (void)circ;
+ (void)at_last_hop;
}
/** The circuit <b>circ</b> has just become open. Take the next