diff --git a/contrib/epee/include/net/net_utils_base.h b/contrib/epee/include/net/net_utils_base.h index 1ef06777..8b474516 100644 --- a/contrib/epee/include/net/net_utils_base.h +++ b/contrib/epee/include/net/net_utils_base.h @@ -79,6 +79,8 @@ namespace net_utils m_started(time(NULL)) {} + connection_context_base(const connection_context_base& a) = default; + connection_context_base& operator=(const connection_context_base& a) { set_details(a.m_connection_id, a.m_remote_ip, a.m_remote_port, a.m_is_income); diff --git a/src/crypto/crypto-sugar.h b/src/crypto/crypto-sugar.h index 68e05fce..f9e626a6 100644 --- a/src/crypto/crypto-sugar.h +++ b/src/crypto/crypto-sugar.h @@ -844,8 +844,11 @@ namespace crypto // zeroes all elements void zero() { + PUSH_GCC_WARNINGS() + DISABLE_GCC_AND_CLANG_WARNING(class-memaccess) size_t size_bytes = sizeof(scalar_t) * size(); memset(data(), 0, size_bytes); + POP_GCC_WARNINGS() } // invert all elements in-place efficiently: 4*N muptiplications + 1 inversion diff --git a/src/currency_core/currency_format_utils_abstract.h b/src/currency_core/currency_format_utils_abstract.h index fd23136b..dece4b0f 100644 --- a/src/currency_core/currency_format_utils_abstract.h +++ b/src/currency_core/currency_format_utils_abstract.h @@ -193,7 +193,7 @@ namespace currency } //--------------------------------------------------------------- inline - const bool get_key_image_from_txin_v(const txin_v& in_v, crypto::key_image& result) noexcept + bool get_key_image_from_txin_v(const txin_v& in_v, crypto::key_image& result) noexcept { try { @@ -218,6 +218,7 @@ namespace currency catch(...) { // should never go here, just precaution + return false; } return false;