fix warning: unused variable 'X' [-Wunused-variable]
Remove several unused variables. Signed-off-by: Giel van Schijndel <me@mortis.eu>
This commit is contained in:
parent
225f222c9f
commit
858cebed7d
4 changed files with 1 additions and 7 deletions
|
@ -627,8 +627,6 @@ int64 CWalletDB::GetAccountCreditDebit(const string& strAccount)
|
||||||
|
|
||||||
void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries)
|
void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries)
|
||||||
{
|
{
|
||||||
int64 nCreditDebit = 0;
|
|
||||||
|
|
||||||
bool fAllAccounts = (strAccount == "*");
|
bool fAllAccounts = (strAccount == "*");
|
||||||
|
|
||||||
Dbc* pcursor = GetCursor();
|
Dbc* pcursor = GetCursor();
|
||||||
|
|
|
@ -1700,7 +1700,7 @@ void StartNode(void* parg)
|
||||||
printf("Error: CreateThread(ThreadIRCSeed) failed\n");
|
printf("Error: CreateThread(ThreadIRCSeed) failed\n");
|
||||||
|
|
||||||
// Send and receive from sockets, accept connections
|
// Send and receive from sockets, accept connections
|
||||||
pthread_t hThreadSocketHandler = CreateThread(ThreadSocketHandler, NULL, true);
|
CreateThread(ThreadSocketHandler, NULL, true);
|
||||||
|
|
||||||
// Initiate outbound connections
|
// Initiate outbound connections
|
||||||
if (!CreateThread(ThreadOpenConnections, NULL))
|
if (!CreateThread(ThreadOpenConnections, NULL))
|
||||||
|
|
|
@ -2419,7 +2419,6 @@ int CommandLineRPC(int argc, char *argv[])
|
||||||
// Parse reply
|
// Parse reply
|
||||||
const Value& result = find_value(reply, "result");
|
const Value& result = find_value(reply, "result");
|
||||||
const Value& error = find_value(reply, "error");
|
const Value& error = find_value(reply, "error");
|
||||||
const Value& id = find_value(reply, "id");
|
|
||||||
|
|
||||||
if (error.type() != null_type)
|
if (error.type() != null_type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -722,8 +722,6 @@ void CWallet::ResendWalletTransactions()
|
||||||
|
|
||||||
int64 CWallet::GetBalance() const
|
int64 CWallet::GetBalance() const
|
||||||
{
|
{
|
||||||
int64 nStart = GetTimeMillis();
|
|
||||||
|
|
||||||
int64 nTotal = 0;
|
int64 nTotal = 0;
|
||||||
CRITICAL_BLOCK(cs_mapWallet)
|
CRITICAL_BLOCK(cs_mapWallet)
|
||||||
{
|
{
|
||||||
|
@ -736,7 +734,6 @@ int64 CWallet::GetBalance() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//printf("GetBalance() %"PRI64d"ms\n", GetTimeMillis() - nStart);
|
|
||||||
return nTotal;
|
return nTotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue