build: fix gcc false positive 'stringop-overflow' warning

This commit is contained in:
xiphon 2018-09-30 02:42:22 +00:00 committed by wowario
parent 6bdd11abe2
commit 202d568676
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -127,7 +127,7 @@ namespace cryptonote
out_amounts[1] += out_amounts[0];
for (size_t n = 1; n < out_amounts.size(); ++n)
out_amounts[n - 1] = out_amounts[n];
out_amounts.resize(out_amounts.size() - 1);
out_amounts.pop_back();
}
}
else