mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-22 05:14:31 -04:00
Fix warning: unused parameter ‘grpItem’ and unused debug variables
/libretroshare/src/gxstrans/p3gxstrans.cc:635: warning: unused parameter ‘grpItem’ [-Wunused-parameter] RsGxsGrpItem* grpItem, RsTlvSecurityKeySet& /*keySet*/ ) /libretroshare/src/gxstrans/p3gxstrans.cc:681: warning: unused variable ‘msgId’ [-Wunused-variable] const RsGxsMessageId& msgId = *vit; /libretroshare/src/gxstrans/p3gxstrans.cc:676: warning: unused variable ‘grpId’ [-Wunused-variable] const RsGxsGroupId& grpId = it->first;
This commit is contained in:
parent
e1ea92d733
commit
18139489cf
1 changed files with 3 additions and 3 deletions
|
@ -632,7 +632,7 @@ void p3GxsTrans::service_tick()
|
||||||
}
|
}
|
||||||
|
|
||||||
RsGenExchange::ServiceCreate_Return p3GxsTrans::service_CreateGroup(
|
RsGenExchange::ServiceCreate_Return p3GxsTrans::service_CreateGroup(
|
||||||
RsGxsGrpItem* grpItem, RsTlvSecurityKeySet& /*keySet*/ )
|
RsGxsGrpItem* /*grpItem*/, RsTlvSecurityKeySet& /*keySet*/ )
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_GXSTRANS
|
#ifdef DEBUG_GXSTRANS
|
||||||
std::cout << "p3GxsTrans::service_CreateGroup(...) "
|
std::cout << "p3GxsTrans::service_CreateGroup(...) "
|
||||||
|
@ -670,6 +670,7 @@ void p3GxsTrans::notifyChanges(std::vector<RsGxsNotify*>& changes)
|
||||||
opts, msgChange->msgChangeMap );
|
opts, msgChange->msgChangeMap );
|
||||||
GxsTokenQueue::queueRequest(token, MAILS_UPDATE);
|
GxsTokenQueue::queueRequest(token, MAILS_UPDATE);
|
||||||
|
|
||||||
|
#ifdef DEBUG_GXSTRANS
|
||||||
for( GxsMsgReq::const_iterator it = msgChange->msgChangeMap.begin();
|
for( GxsMsgReq::const_iterator it = msgChange->msgChangeMap.begin();
|
||||||
it != msgChange->msgChangeMap.end(); ++it )
|
it != msgChange->msgChangeMap.end(); ++it )
|
||||||
{
|
{
|
||||||
|
@ -679,13 +680,12 @@ void p3GxsTrans::notifyChanges(std::vector<RsGxsNotify*>& changes)
|
||||||
for(itT vit = msgsIds.begin(); vit != msgsIds.end(); ++vit)
|
for(itT vit = msgsIds.begin(); vit != msgsIds.end(); ++vit)
|
||||||
{
|
{
|
||||||
const RsGxsMessageId& msgId = *vit;
|
const RsGxsMessageId& msgId = *vit;
|
||||||
#ifdef DEBUG_GXSTRANS
|
|
||||||
std::cout << "p3GxsTrans::notifyChanges(...) got "
|
std::cout << "p3GxsTrans::notifyChanges(...) got "
|
||||||
<< "notification for message " << msgId
|
<< "notification for message " << msgId
|
||||||
<< " in group " << grpId << std::endl;
|
<< " in group " << grpId << std::endl;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RsGxsIfaceHelper::receiveChanges(changes);
|
RsGxsIfaceHelper::receiveChanges(changes);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue