aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-12 17:20:09 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-12 19:03:04 -0400
commita4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca (patch)
treed92f357551808189367fce55dd9c29a474b24932 /src/or/routerparse.c
parent0f58e173134698a813d23288dabc22f2591e9dc2 (diff)
downloadtor-a4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca.tar.gz
tor-a4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca.zip
clang scan-build: Fix "dead increment" warnings.
For the most part, these indicated a spot where the code could have been better.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 08c3fc0a02..7a58dd5056 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2934,7 +2934,7 @@ networkstatus_verify_bw_weights(networkstatus_t *ns, int consensus_method)
}
Wgg /= weight_scale;
- Wgm /= weight_scale;
+ Wgm /= weight_scale; (void) Wgm; // unused from here on.
Wgd /= weight_scale;
Wmg /= weight_scale;
@@ -2942,8 +2942,8 @@ networkstatus_verify_bw_weights(networkstatus_t *ns, int consensus_method)
Wme /= weight_scale;
Wmd /= weight_scale;
- Weg /= weight_scale;
- Wem /= weight_scale;
+ Weg /= weight_scale; (void) Weg; // unused from here on.
+ Wem /= weight_scale; (void) Wem; // unused from here on.
Wee /= weight_scale;
Wed /= weight_scale;