From d8b0b5222b62eda0045b7c277ed9e212547df839 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 11:39:03 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20warning:=20variable=20=E2=80=98it?= =?UTF-8?q?=E2=80=99=20set=20but=20not=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /libretroshare/src/gxs/rsgxsnetservice.cc:867: warning: variable ‘it’ set but not used [-Wunused-but-set-variable] std::map::iterator it = mServerMsgUpdateMap.find(grpId) ; /libretroshare/src/gxs/rsgxsnetservice.cc:2434: warning: variable ‘it’ set but not used [-Wunused-but-set-variable] ClientGrpMap::iterator it = mClientGrpUpdateMap.find(peerFrom); --- libretroshare/src/gxs/rsgxsnetservice.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/rsgxsnetservice.cc b/libretroshare/src/gxs/rsgxsnetservice.cc index 94a321e9d..7add5720e 100644 --- a/libretroshare/src/gxs/rsgxsnetservice.cc +++ b/libretroshare/src/gxs/rsgxsnetservice.cc @@ -863,8 +863,8 @@ void RsGxsNetService::subscribeStatusChanged(const RsGxsGroupId& grpId,bool subs #ifdef NXS_NET_DEBUG_0 GXSNETDEBUG__G(grpId) << "Changing subscribe status for grp " << grpId << " to " << subscribed << ": reseting all server msg time stamps for this group, and server global TS." << std::endl; -#endif std::map::iterator it = mServerMsgUpdateMap.find(grpId) ; +#endif RsGxsServerMsgUpdate& item(mServerMsgUpdateMap[grpId]) ; @@ -2431,7 +2431,9 @@ void RsGxsNetService::locked_processCompletedIncomingTrans(NxsTransaction* tr) RsPeerId peerFrom = tr->mTransaction->PeerId(); uint32_t updateTS = tr->mTransaction->updateTS; +#ifdef NXS_NET_DEBUG_0 ClientGrpMap::iterator it = mClientGrpUpdateMap.find(peerFrom); +#endif RsGxsGrpUpdate& item(mClientGrpUpdateMap[peerFrom]) ;