fixed warnings on linux
This commit is contained in:
parent
4fa2afa87e
commit
f1a7c25fa3
3 changed files with 7 additions and 1 deletions
|
|
@ -79,6 +79,8 @@ namespace net_utils
|
||||||
m_started(time(NULL))
|
m_started(time(NULL))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
connection_context_base(const connection_context_base& a) = default;
|
||||||
|
|
||||||
connection_context_base& operator=(const connection_context_base& a)
|
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);
|
set_details(a.m_connection_id, a.m_remote_ip, a.m_remote_port, a.m_is_income);
|
||||||
|
|
|
||||||
|
|
@ -844,8 +844,11 @@ namespace crypto
|
||||||
// zeroes all elements
|
// zeroes all elements
|
||||||
void zero()
|
void zero()
|
||||||
{
|
{
|
||||||
|
PUSH_GCC_WARNINGS()
|
||||||
|
DISABLE_GCC_AND_CLANG_WARNING(class-memaccess)
|
||||||
size_t size_bytes = sizeof(scalar_t) * size();
|
size_t size_bytes = sizeof(scalar_t) * size();
|
||||||
memset(data(), 0, size_bytes);
|
memset(data(), 0, size_bytes);
|
||||||
|
POP_GCC_WARNINGS()
|
||||||
}
|
}
|
||||||
|
|
||||||
// invert all elements in-place efficiently: 4*N muptiplications + 1 inversion
|
// invert all elements in-place efficiently: 4*N muptiplications + 1 inversion
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ namespace currency
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------
|
//---------------------------------------------------------------
|
||||||
inline
|
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
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -218,6 +218,7 @@ namespace currency
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
// should never go here, just precaution
|
// should never go here, just precaution
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue