aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiel van Schijndel <[email protected]>2011-06-24 22:00:59 +0200
committerGiel van Schijndel <[email protected]>2011-07-13 05:10:15 +0200
commit858cebed7dee2e9801e754a9969844b7969254ee (patch)
treead12ee913c13750c880a6bd04508cc25be8f8545 /src
parentfix warning: X enumeration values not handled in switch [-Wswitch-enum] (diff)
downloaddiscoin-858cebed7dee2e9801e754a9969844b7969254ee.tar.xz
discoin-858cebed7dee2e9801e754a9969844b7969254ee.zip
fix warning: unused variable 'X' [-Wunused-variable]
Remove several unused variables. Signed-off-by: Giel van Schijndel <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/db.cpp2
-rw-r--r--src/net.cpp2
-rw-r--r--src/rpc.cpp1
-rw-r--r--src/wallet.cpp3
4 files changed, 1 insertions, 7 deletions
diff --git a/src/db.cpp b/src/db.cpp
index 1dea92ead..4df05d68e 100644
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -627,8 +627,6 @@ int64 CWalletDB::GetAccountCreditDebit(const string& strAccount)
void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries)
{
- int64 nCreditDebit = 0;
-
bool fAllAccounts = (strAccount == "*");
Dbc* pcursor = GetCursor();
diff --git a/src/net.cpp b/src/net.cpp
index da1387449..ac5a2834b 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1700,7 +1700,7 @@ void StartNode(void* parg)
printf("Error: CreateThread(ThreadIRCSeed) failed\n");
// Send and receive from sockets, accept connections
- pthread_t hThreadSocketHandler = CreateThread(ThreadSocketHandler, NULL, true);
+ CreateThread(ThreadSocketHandler, NULL, true);
// Initiate outbound connections
if (!CreateThread(ThreadOpenConnections, NULL))
diff --git a/src/rpc.cpp b/src/rpc.cpp
index e71c5bcb4..4016d265c 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -2419,7 +2419,6 @@ int CommandLineRPC(int argc, char *argv[])
// Parse reply
const Value& result = find_value(reply, "result");
const Value& error = find_value(reply, "error");
- const Value& id = find_value(reply, "id");
if (error.type() != null_type)
{
diff --git a/src/wallet.cpp b/src/wallet.cpp
index a211fde46..f4df5ecf6 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -722,8 +722,6 @@ void CWallet::ResendWalletTransactions()
int64 CWallet::GetBalance() const
{
- int64 nStart = GetTimeMillis();
-
int64 nTotal = 0;
CRITICAL_BLOCK(cs_mapWallet)
{
@@ -736,7 +734,6 @@ int64 CWallet::GetBalance() const
}
}
- //printf("GetBalance() %"PRI64d"ms\n", GetTimeMillis() - nStart);
return nTotal;
}