aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/util.h1
-rw-r--r--tests/unit_tests/serialization.cpp6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 3bb9a053e..501a6d487 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -32,6 +32,7 @@
#include <boost/thread/locks.hpp>
#include <boost/thread/mutex.hpp>
+#include <system_error>
#include <csignal>
#include <cstdio>
#include <functional>
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp
index f8afb2e94..70757dfc1 100644
--- a/tests/unit_tests/serialization.cpp
+++ b/tests/unit_tests/serialization.cpp
@@ -630,9 +630,11 @@ TEST(Serialization, serializes_ringct_types)
tx0.set_null();
tx0.version = 2;
- cryptonote::txin_to_key txin_to_key1;
+ cryptonote::txin_to_key txin_to_key1{};
+ txin_to_key1.amount = 100;
txin_to_key1.key_offsets.resize(4);
- cryptonote::txin_to_key txin_to_key2;
+ cryptonote::txin_to_key txin_to_key2{};
+ txin_to_key2.amount = 200;
txin_to_key2.key_offsets.resize(4);
tx0.vin.push_back(txin_to_key1);
tx0.vin.push_back(txin_to_key2);