mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
Fix some new warnings
This commit is contained in:
parent
85e6f61f02
commit
41386c64b7
4 changed files with 22 additions and 23 deletions
|
@ -758,7 +758,7 @@ int RsGenExchange::createMessage(RsNxsMsg* msg)
|
|||
}
|
||||
}
|
||||
|
||||
int RsGenExchange::validateMsg(RsNxsMsg *msg, const uint32_t& grpFlag, const uint32_t& signFlag, RsTlvSecurityKeySet& grpKeySet)
|
||||
int RsGenExchange::validateMsg(RsNxsMsg *msg, const uint32_t& grpFlag, const uint32_t& /*signFlag*/, RsTlvSecurityKeySet& grpKeySet)
|
||||
{
|
||||
bool needIdentitySign = false;
|
||||
bool needPublishSign = false;
|
||||
|
|
|
@ -1347,13 +1347,13 @@ void Reputation::updateReputation()
|
|||
|
||||
for(std::map<RsPeerId,RsReputations::Opinion>::const_iterator it(mOpinions.begin());it!=mOpinions.end();++it)
|
||||
{
|
||||
if(it->second == RsReputations::OPINION_NEGATIVE)
|
||||
if( it->second == RsReputations::OPINION_NEGATIVE)
|
||||
++mFriendsNegative ;
|
||||
|
||||
if(it->second == RsReputations::OPINION_POSITIVE)
|
||||
if( it->second == RsReputations::OPINION_POSITIVE)
|
||||
++mFriendsPositive ;
|
||||
|
||||
friend_total += it->second - 1;
|
||||
friend_total += it->second - 1 ;
|
||||
}
|
||||
|
||||
if(mOpinions.empty()) // includes the case of no friends!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue