diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-12 17:20:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-12 19:03:04 -0400 |
commit | a4847ffa915ec7d09ae28ef4ad6bc1c8a1b324ca (patch) | |
tree | d92f357551808189367fce55dd9c29a474b24932 /src/common/util.c | |
parent | 0f58e173134698a813d23288dabc22f2591e9dc2 (diff) | |
download | tor-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/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 36d0f4d068..6e08979ff1 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -445,7 +445,7 @@ tor_log2(uint64_t u64) r += 2; } if (u64 >= (U64_LITERAL(1)<<1)) { - u64 >>= 1; + // u64 >>= 1; // not using this any more. r += 1; } return r; |