aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorjeff <jeffro256@tutanota.com>2023-08-30 20:16:26 -0500
committerjeffro256 <jeffro256@tutanota.com>2023-10-16 16:48:27 -0500
commit80b5bf8b3d2794e87d24a71c1e7ea54f449ece41 (patch)
tree1f6a0eb2ab0900fb994eeff83e1adb2128287203 /src/cryptonote_basic
parentMerge pull request #8959 (diff)
downloadmonero-80b5bf8b3d2794e87d24a71c1e7ea54f449ece41.tar.xz
gcc: fix uninitialized constructor warnings
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r--src/cryptonote_basic/cryptonote_basic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_basic/cryptonote_basic.h b/src/cryptonote_basic/cryptonote_basic.h
index ae112c31f..0531439d6 100644
--- a/src/cryptonote_basic/cryptonote_basic.h
+++ b/src/cryptonote_basic/cryptonote_basic.h
@@ -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