Skip to content

Commit

Permalink
[Build] Clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CaveSpectre11 committed Dec 18, 2019
1 parent 8854eac commit bccbec4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,6 @@ bool AppInit2()
nCoinCacheSize = nTotalCache / 300; // coins in memory require around 300 bytes

bool fLoaded = false;
int64_t nStart = GetTimeMillis();
while (!fLoaded && !ShutdownRequested()) {
bool fReset = fReindex;
std::string strLoadError;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/welcomecontentwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
WelcomeContentWidget::WelcomeContentWidget(QWidget *parent) :
QDialog(parent, Qt::FramelessWindowHint | Qt::WindowSystemMenuHint),
ui(new Ui::WelcomeContentWidget),
backButton(new QPushButton()),
icConfirm1(new QPushButton()),
icConfirm2(new QPushButton()),
icConfirm3(new QPushButton()),
icConfirm4(new QPushButton()),
backButton(new QPushButton()),
nextButton(new QPushButton())
{
ui->setupUi(this);
Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet*
if (fAllToMe > mine) fAllToMe = mine;
}

if (fAllFromMeDenom && fAllToMeDenom && nFromMe * nToMe) {
if (fAllFromMeDenom && fAllToMeDenom && ((nFromMe * nToMe) != 0)) {
parts.append(TransactionRecord(hash, nTime, wtx.GetTotalSize(), TransactionRecord::ObfuscationDenominate, "", -nDebit, nCredit));
parts.last().involvesWatchAddress = false; // maybe pass to TransactionRecord as constructor argument
} else if (fAllFromMe && fAllToMe) {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5642,7 +5642,7 @@ CAmount CWallet::GetDebit(const CTransaction& tx, const isminefilter& filter) co
CAmount CWallet::GetCredit(const CTransaction& tx, const isminefilter& filter, const bool fUnspent) const
{
CAmount nCredit = 0;
for (int i = 0; i < tx.vout.size(); i++) {
for (unsigned int i = 0; i < tx.vout.size(); i++) {
if (fUnspent && IsSpent(tx.GetHash(), i)) continue;
nCredit += GetCredit(tx.vout[i], filter);
}
Expand Down

0 comments on commit bccbec4

Please sign in to comment.