]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix GCC 4.6's new -Wunused-but-set-variable warnings.
authorNick Mathewson <nickm@torproject.org>
Mon, 23 May 2011 21:04:38 +0000 (17:04 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 23 May 2011 21:04:38 +0000 (17:04 -0400)
commita5232e0c4c572cdff85701f698b8b90c9443d7e4
tree1bc0db8feaa3a808518b5c277481eefacb984277
parent57810c333a38c72c1e361c02e31de7712d1f221a
Fix GCC 4.6's new -Wunused-but-set-variable warnings.

Most instances were dead code; for those, I removed the assignments.
Some were pieces of info we don't currently plan to use, but which
we might in the future.  For those, I added an explicit cast-to-void
to indicate that we know that the thing's unused.  Finally, one was
a case where we were testing the wrong variable in a unit test.
That one I fixed.

This resolves bug 3208.
changes/bug3208
src/or/circuitbuild.c
src/or/command.c
src/or/control.c
src/or/directory.c
src/or/dirvote.c
src/or/eventdns.c
src/test/test_crypto.c