mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-25 17:02:26 +00:00
Merge pull request #7394
b900fa0
Fix compiler warning for in keyvalue_serialization.h (mj-xmr)
This commit is contained in:
commit
4a7b729025
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ public: \
|
||||||
template<bool is_store, class t_storage> \
|
template<bool is_store, class t_storage> \
|
||||||
bool serialize_map(t_storage& stg, typename t_storage::hsection hparent_section) \
|
bool serialize_map(t_storage& stg, typename t_storage::hsection hparent_section) \
|
||||||
{ \
|
{ \
|
||||||
decltype(*this) &this_ref = *this;
|
decltype(*this) &this_ref = *this; \
|
||||||
|
(void) this_ref; // Suppress unused var warnings. Sometimes this var is used, sometimes not.
|
||||||
|
|
||||||
#define KV_SERIALIZE_N(varialble, val_name) \
|
#define KV_SERIALIZE_N(varialble, val_name) \
|
||||||
epee::serialization::selector<is_store>::serialize(this_ref.varialble, stg, hparent_section, val_name);
|
epee::serialization::selector<is_store>::serialize(this_ref.varialble, stg, hparent_section, val_name);
|
||||||
|
|
Loading…
Reference in a new issue