Fix most compilation warnings for gcc, clang, release, debug.

This commit is contained in:
Tom Ritchford
2014-10-01 16:44:00 -04:00
committed by Nik Bougalis
parent b651e0146d
commit 0f71b4a378
9 changed files with 18 additions and 8 deletions

View File

@@ -1045,7 +1045,7 @@ void LedgerEntrySet::incrementOwnerCount (SLE::ref sleAccount)
void LedgerEntrySet::incrementOwnerCount (Account const& owner)
{
incrementOwnerCount(entryCache (ltACCOUNT_ROOT,
incrementOwnerCount(entryCache (ltACCOUNT_ROOT,
Ledger::getAccountRootIndex (owner)));
}
@@ -1069,7 +1069,7 @@ void LedgerEntrySet::decrementOwnerCount (SLE::ref sleAccount)
void LedgerEntrySet::decrementOwnerCount (Account const& owner)
{
decrementOwnerCount(entryCache (ltACCOUNT_ROOT,
decrementOwnerCount(entryCache (ltACCOUNT_ROOT,
Ledger::getAccountRootIndex (owner)));
}
@@ -1440,6 +1440,7 @@ TER LedgerEntrySet::rippleCredit (
// Make sure issuer is involved.
assert (
!bCheckIssuer || uSenderID == issuer || uReceiverID == issuer);
(void) issuer;
// Disallow sending to self.
assert (uSenderID != uReceiverID);