Browse Source

fix warning: unused variable 'X' [-Wunused-variable]

Remove several unused variables.

Signed-off-by: Giel van Schijndel <me@mortis.eu>
miguelfreitas
Giel van Schijndel 14 years ago
parent
commit
858cebed7d
  1. 2
      src/db.cpp
  2. 2
      src/net.cpp
  3. 1
      src/rpc.cpp
  4. 3
      src/wallet.cpp

2
src/db.cpp

@ -627,8 +627,6 @@ int64 CWalletDB::GetAccountCreditDebit(const string& strAccount) @@ -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();

2
src/net.cpp

@ -1700,7 +1700,7 @@ void StartNode(void* parg) @@ -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))

1
src/rpc.cpp

@ -2419,7 +2419,6 @@ int CommandLineRPC(int argc, char *argv[]) @@ -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)
{

3
src/wallet.cpp

@ -722,8 +722,6 @@ void CWallet::ResendWalletTransactions() @@ -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 @@ -736,7 +734,6 @@ int64 CWallet::GetBalance() const
}
}
//printf("GetBalance() %"PRI64d"ms\n", GetTimeMillis() - nStart);
return nTotal;
}

Loading…
Cancel
Save