mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix warning: variable ‘it’ set but not used
/libretroshare/src/gxs/rsgxsnetservice.cc:867: warning: variable ‘it’ set but not used [-Wunused-but-set-variable] std::map<RsGxsGroupId,RsGxsServerMsgUpdate>::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);
This commit is contained in:
parent
b11022a239
commit
d8b0b5222b
@ -863,8 +863,8 @@ void RsGxsNetService::subscribeStatusChanged(const RsGxsGroupId& grpId,bool subs
|
|||||||
|
|
||||||
#ifdef NXS_NET_DEBUG_0
|
#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;
|
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<RsGxsGroupId,RsGxsServerMsgUpdate>::iterator it = mServerMsgUpdateMap.find(grpId) ;
|
std::map<RsGxsGroupId,RsGxsServerMsgUpdate>::iterator it = mServerMsgUpdateMap.find(grpId) ;
|
||||||
|
#endif
|
||||||
|
|
||||||
RsGxsServerMsgUpdate& item(mServerMsgUpdateMap[grpId]) ;
|
RsGxsServerMsgUpdate& item(mServerMsgUpdateMap[grpId]) ;
|
||||||
|
|
||||||
@ -2431,7 +2431,9 @@ void RsGxsNetService::locked_processCompletedIncomingTrans(NxsTransaction* tr)
|
|||||||
RsPeerId peerFrom = tr->mTransaction->PeerId();
|
RsPeerId peerFrom = tr->mTransaction->PeerId();
|
||||||
uint32_t updateTS = tr->mTransaction->updateTS;
|
uint32_t updateTS = tr->mTransaction->updateTS;
|
||||||
|
|
||||||
|
#ifdef NXS_NET_DEBUG_0
|
||||||
ClientGrpMap::iterator it = mClientGrpUpdateMap.find(peerFrom);
|
ClientGrpMap::iterator it = mClientGrpUpdateMap.find(peerFrom);
|
||||||
|
#endif
|
||||||
|
|
||||||
RsGxsGrpUpdate& item(mClientGrpUpdateMap[peerFrom]) ;
|
RsGxsGrpUpdate& item(mClientGrpUpdateMap[peerFrom]) ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user