From b900fa03c1ca4f6846b963e1e24c26169baf9db7 Mon Sep 17 00:00:00 2001 From: mj-xmr Date: Sun, 21 Feb 2021 18:31:28 +0100 Subject: Fix compiler warning for in keyvalue_serialization.h --- contrib/epee/include/serialization/keyvalue_serialization.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/epee') 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 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::serialize(this_ref.varialble, stg, hparent_section, val_name); -- cgit v1.2.3