Merge pull request #8979

80b5bf8 gcc: fix uninitialized constructor warnings (jeff)
This commit is contained in:
luigi1111 2023-11-06 09:23:48 -05:00
commit a87f2bdd3f
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
5 changed files with 11 additions and 7 deletions

View file

@ -77,7 +77,7 @@ namespace cryptonote
// outputs <= HF_VERSION_VIEW_TAGS
struct txout_to_key
{
txout_to_key() { }
txout_to_key(): key() { }
txout_to_key(const crypto::public_key &_key) : key(_key) { }
crypto::public_key key;
};
@ -85,7 +85,7 @@ namespace cryptonote
// outputs >= HF_VERSION_VIEW_TAGS
struct txout_to_tagged_key
{
txout_to_tagged_key() { }
txout_to_tagged_key(): key(), view_tag() { }
txout_to_tagged_key(const crypto::public_key &_key, const crypto::view_tag &_view_tag) : key(_key), view_tag(_view_tag) { }
crypto::public_key key;
crypto::view_tag view_tag; // optimization to reduce scanning time