aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-04-15 12:53:14 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-04-15 19:40:58 -0400
commit0aa0bb1ead81641480c0c7533a1f52dd6a07434e (patch)
treeb68999157779471828a8f9922e6a9a2ffa5fdffc /src
parent7c3db2129e3d625e05ee56b3d07d12c0b6cfed92 (diff)
downloadbitcoin-0aa0bb1ead81641480c0c7533a1f52dd6a07434e.tar.xz
fix warnings: unused variable 'XX' [-Wunused-variable]
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp3
-rw-r--r--src/qt/bitcoinstrings.cpp7
-rw-r--r--src/script.cpp1
3 files changed, 6 insertions, 5 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 37e73c421a..9bdb1f283e 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1305,8 +1305,6 @@ void ThreadOpenConnections2(void* parg)
return;
}
- bool fAddSeeds = false;
-
// Add seed nodes if IRC isn't working
bool fTOR = (fUseProxy && addrProxy.GetPort() == 9050);
if (addrman.size()==0 && (GetTime() - nStart > 60 || fTOR) && !fTestNet)
@@ -1332,7 +1330,6 @@ void ThreadOpenConnections2(void* parg)
// Choose an address to connect to based on most recently seen
//
CAddress addrConnect;
- int64 nBest = std::numeric_limits<int64>::min();
// Only connect to one address per a.b.?.? range.
// Do this here so we don't have to critsect vNodes inside mapAddresses critsect.
diff --git a/src/qt/bitcoinstrings.cpp b/src/qt/bitcoinstrings.cpp
index 73db1fe46c..73a63e92ba 100644
--- a/src/qt/bitcoinstrings.cpp
+++ b/src/qt/bitcoinstrings.cpp
@@ -1,6 +1,11 @@
#include <QtGlobal>
// Automatically generated by extract_strings.py
-static const char *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin version"),
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin version"),
QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or bitcoind"),
QT_TRANSLATE_NOOP("bitcoin-core", "List commands"),
diff --git a/src/script.cpp b/src/script.cpp
index b6f120289a..21f101e1c5 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -1443,7 +1443,6 @@ bool ExtractAddresses(const CScript& scriptPubKey, txnouttype& typeRet, vector<C
if (typeRet == TX_MULTISIG)
{
nRequiredRet = vSolutions.front()[0];
- int n = vSolutions.back()[0];
for (int i = 1; i < vSolutions.size()-1; i++)
{
CBitcoinAddress address;