mirror of
https://github.com/monero-project/monero.git
synced 2025-08-09 22:22:20 -04:00
gcc: fix uninitialized constructor warnings
This commit is contained in:
parent
8123d945f8
commit
80b5bf8b3d
5 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue