aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormj-xmr <mjxmr@protonmail.com>2021-02-21 18:31:28 +0100
committermj-xmr <mjxmr@protonmail.com>2021-02-21 18:35:06 +0100
commitb900fa03c1ca4f6846b963e1e24c26169baf9db7 (patch)
treea539449f4ad3cc4bf81c28dfa0a389a632055896
parentMerge pull request #7381 (diff)
downloadmonero-b900fa03c1ca4f6846b963e1e24c26169baf9db7.tar.xz
Fix compiler warning for in keyvalue_serialization.h
Diffstat (limited to '')
-rw-r--r--contrib/epee/include/serialization/keyvalue_serialization.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/serialization/keyvalue_serialization.h b/contrib/epee/include/serialization/keyvalue_serialization.h
index fd343865c..2e4a0faad 100644
--- a/contrib/epee/include/serialization/keyvalue_serialization.h
+++ b/contrib/epee/include/serialization/keyvalue_serialization.h
@@ -73,7 +73,8 @@ public: \
template<bool is_store, class t_storage> \
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) \
epee::serialization::selector<is_store>::serialize(this_ref.varialble, stg, hparent_section, val_name);