mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 13:51:12 -05:00
Fixed unused variable warning
This commit is contained in:
parent
af9cd44bd4
commit
3ad6f6710b
@ -2049,6 +2049,10 @@ bool ftServer::receiveSearchRequest(
|
||||
return RsServiceSerializer::serialise(
|
||||
&resIt, searchResultData, &searchResultDataLen );
|
||||
}
|
||||
#else
|
||||
(void) searchRequestData;
|
||||
(void) searchRequestDataLen;
|
||||
(void) maxAllowsHits;
|
||||
#endif // def RS_DEEP_FILES_INDEX
|
||||
|
||||
searchResultData = nullptr;
|
||||
|
@ -512,6 +512,9 @@ void p3GRouter::receiveTurtleData(const RsTurtleGenericTunnelItem *gitem, const
|
||||
std::cerr << " Received data for hash : " << hash << std::endl;
|
||||
std::cerr << " Virtual peer id : " << virtual_peer_id << std::endl;
|
||||
std::cerr << " Direction : " << direction << std::endl;
|
||||
#else
|
||||
(void) hash;
|
||||
(void) direction;
|
||||
#endif
|
||||
|
||||
// turtle data is received.
|
||||
|
@ -1780,7 +1780,7 @@ void RsGenExchange::receiveNewMessages(const std::vector<RsNxsMsg *>& messages)
|
||||
}
|
||||
}
|
||||
|
||||
void RsGenExchange::receiveDistantSearchResults(TurtleRequestId id,const RsGxsGroupId &grpId)
|
||||
void RsGenExchange::receiveDistantSearchResults(TurtleRequestId id,const RsGxsGroupId &/*grpId*/)
|
||||
{
|
||||
std::cerr << __PRETTY_FUNCTION__ << " received result for request " << std::hex << id << std::dec << ": this method should be overloaded in the client service, but it is not. This is a bug!" << std::endl;
|
||||
}
|
||||
|
@ -4277,6 +4277,9 @@ bool RsGxsNetService::locked_checkResendingOfUpdates(const RsPeerId& pid,const R
|
||||
{
|
||||
#ifdef NXS_NET_DEBUG_0
|
||||
GXSNETDEBUG_PG(pid,grpId) << "(II) peer " << pid << " already sent the same TS " << (long int)now-(long int)rec.mTs << " secs ago for that group ID. Will not send msg list again for a while to prevent clogging..." << std::endl;
|
||||
#else
|
||||
(void) pid;
|
||||
(void) grpId;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
@ -4439,7 +4442,9 @@ void RsGxsNetService::handleRecvSyncMessage(RsNxsSyncMsgReqItem *item,bool item_
|
||||
uint32_t transN = locked_getTransactionId();
|
||||
RsGxsCircleId should_encrypt_to_this_circle_id ;
|
||||
|
||||
#ifndef RS_GXS_SEND_ALL
|
||||
rstime_t now = time(NULL) ;
|
||||
#endif
|
||||
|
||||
#ifndef RS_GXS_SEND_ALL
|
||||
uint32_t max_send_delay = locked_getGrpConfig(item->grpId).msg_req_delay; // we should use "sync" but there's only one variable used in the GUI: the req one.
|
||||
|
@ -340,7 +340,7 @@ bool RsGxsIntegrityCheck::check(uint16_t service_type, RsGixs *mgixs, RsGeneralD
|
||||
}
|
||||
|
||||
bool RsGxsSinglePassIntegrityCheck::check(
|
||||
uint16_t service_type, RsGixs* mgixs, RsGeneralDataService* mds,
|
||||
uint16_t /*service_type*/, RsGixs* /*mgixs*/, RsGeneralDataService* mds,
|
||||
std::vector<RsGxsGroupId>& grpsToDel, GxsMsgReq& msgsToDel )
|
||||
{
|
||||
#ifdef DEBUG_GXSUTIL
|
||||
|
@ -236,7 +236,7 @@ bool p3GxsCircles::createCircle(
|
||||
|
||||
bool p3GxsCircles::checkCircleParamConsistency( const std::string& circleName, RsGxsCircleType circleType,
|
||||
const RsGxsCircleId& restrictedId,
|
||||
const RsGxsId& authorId, const std::set<RsGxsId>& gxsIdMembers,
|
||||
const RsGxsId& /*authorId*/, const std::set<RsGxsId>& gxsIdMembers,
|
||||
const std::set<RsPgpId>& localMembers ) const
|
||||
{
|
||||
if(circleName.empty())
|
||||
|
@ -52,7 +52,7 @@ void TorControlCommand::onFinished(int statusCode)
|
||||
mFinished(this);
|
||||
}
|
||||
|
||||
void TorControlCommand::onDataLine(const ByteArray &data)
|
||||
void TorControlCommand::onDataLine(const ByteArray &/*data*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,6 @@ bool RetroDb::execSQL(const std::string &query){
|
||||
}
|
||||
|
||||
|
||||
uint32_t delta = 3;
|
||||
rstime_t stamp = time(NULL);
|
||||
bool timeOut = false, ok = false;
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define PASS_MAX 512
|
||||
|
||||
namespace RsUtil {
|
||||
std::string rs_getpass(const std::string& prompt,bool no_echo)
|
||||
std::string rs_getpass(const std::string& prompt,bool /*no_echo*/)
|
||||
{
|
||||
static char getpassbuf [PASS_MAX + 1];
|
||||
size_t i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user