aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-01-16 22:16:48 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2012-01-16 22:29:54 -0500
commitc144672045e69d82e4e48479f2f1ed9956186bfb (patch)
tree4bb5a5e2d51657b21438e09a499cd4e756ec8f2f /src/bitcoinrpc.cpp
parent70550ed81be022c81826791a75dd1567db1d667b (diff)
downloadbitcoin-c144672045e69d82e4e48479f2f1ed9956186bfb.tar.xz
Code tidyups, fixing various warnings.
Partial cherry pick of: Compile with extra warnings turned on. And more makefile/code tidying up. This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings. Exceptions are: -Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned. -Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit). Conflicts: src/makefile.osx src/makefile.unix src/netbase.cpp
Diffstat (limited to 'src/bitcoinrpc.cpp')
-rw-r--r--src/bitcoinrpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp
index 889dd7a1b1..4031d0cbc3 100644
--- a/src/bitcoinrpc.cpp
+++ b/src/bitcoinrpc.cpp
@@ -1312,7 +1312,7 @@ Value listsinceblock(const Array& params, bool fHelp)
CBlockIndex *block;
for (block = pindexBest;
block && block->nHeight > target_height;
- block = block->pprev);
+ block = block->pprev) { }
lastblock = block ? block->GetBlockHash() : 0;
}