aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-03-20 01:43:13 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-03-20 01:43:13 -0400
commit4a7b7290255c4c4f09a98d474e5615ef44d9a7c0 (patch)
tree75814b02d227795834914dd343ecbb241cbc710e /contrib/epee/include
parentMerge pull request #7368 (diff)
parentFix compiler warning for in keyvalue_serialization.h (diff)
downloadmonero-4a7b7290255c4c4f09a98d474e5615ef44d9a7c0.tar.xz
Merge pull request #7394
b900fa0 Fix compiler warning for in keyvalue_serialization.h (mj-xmr)
Diffstat (limited to 'contrib/epee/include')
-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);