mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Removed some unused parameter warnings.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8481 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ec6f6ea009
commit
0ee754939e
@ -288,6 +288,9 @@ void DistantChatService::removeVirtualPeer(const TurtleFileHash& hash,const Turt
|
||||
|
||||
#ifdef DEBUG_DISTANT_CHAT
|
||||
std::cerr << "Distant chat: Removing virtual peer " << virtual_peer_id << " for hash " << hash << std::endl;
|
||||
#else
|
||||
/* remove unused parameter warnings */
|
||||
(void) hash;
|
||||
#endif
|
||||
{
|
||||
RsStackMutex stack(mDistantChatMtx); /********** STACK LOCKED MTX ******/
|
||||
@ -354,6 +357,9 @@ void DistantChatService::receiveTurtleData(RsTurtleGenericTunnelItem *gitem,cons
|
||||
std::cerr << " hash = " << hash << std::endl;
|
||||
std::cerr << " vpid = " << virtual_peer_id << std::endl;
|
||||
std::cerr << " acting as = " << direction << std::endl;
|
||||
#else
|
||||
/* remove unused parameter warnings */
|
||||
(void) direction;
|
||||
#endif
|
||||
|
||||
RsTurtleGenericDataItem *item = dynamic_cast<RsTurtleGenericDataItem*>(gitem) ;
|
||||
|
@ -753,7 +753,7 @@ bool p3ChatService::handleRecvChatMsgItem(RsChatMsgItem *ci)
|
||||
return true ;
|
||||
}
|
||||
|
||||
void p3ChatService::locked_storeIncomingMsg(RsChatMsgItem *item)
|
||||
void p3ChatService::locked_storeIncomingMsg(RsChatMsgItem */*item*/)
|
||||
{
|
||||
#ifdef REMOVE
|
||||
privateIncomingList.push_back(item) ;
|
||||
|
@ -70,14 +70,14 @@ class FileDetails
|
||||
return;
|
||||
}
|
||||
|
||||
FileDetails(std::string path, uint32_t p, TransferRequestFlags f)
|
||||
FileDetails(std::string path, uint32_t /*p*/, TransferRequestFlags f)
|
||||
{
|
||||
info.path = path;
|
||||
// period = p;
|
||||
info.transfer_info_flags = f;
|
||||
}
|
||||
|
||||
FileDetails(FileInfo &i, uint32_t p, TransferRequestFlags f)
|
||||
FileDetails(FileInfo &i, uint32_t /*p*/, TransferRequestFlags f)
|
||||
{
|
||||
info = i;
|
||||
// period = p;
|
||||
|
@ -53,7 +53,7 @@ class GRouterClientService
|
||||
//
|
||||
// GRouter stays owner of the item, so the client should not delete it!
|
||||
//
|
||||
virtual void receiveGRouterData(const RsGxsId& destination_key,const RsGxsId& signing_key, GRouterServiceId &client_id, uint8_t *data, uint32_t data_size)
|
||||
virtual void receiveGRouterData(const RsGxsId& destination_key,const RsGxsId& /*signing_key*/, GRouterServiceId &/*client_id*/, uint8_t */*data*/, uint32_t /*data_size*/)
|
||||
{
|
||||
std::cerr << "!!!!!! Received Data from global router, but the client service is not handling it !!!!!!!!!!" << std::endl ;
|
||||
std::cerr << " destination key_id = " << destination_key.toStdString() << std::endl;
|
||||
|
@ -668,7 +668,7 @@ bool AuthSSLimpl::VerifyOwnSignBin(const void *data, const uint32_t len,
|
||||
* only using GPG functions - which lock themselves
|
||||
*/
|
||||
|
||||
X509 *AuthSSLimpl::SignX509ReqWithGPG(X509_REQ *req, long days)
|
||||
X509 *AuthSSLimpl::SignX509ReqWithGPG(X509_REQ *req, long /*days*/)
|
||||
{
|
||||
/* Transform the X509_REQ into a suitable format to
|
||||
* generate DIGEST hash. (for SSL to do grunt work)
|
||||
@ -1109,10 +1109,10 @@ int AuthSSLimpl::VerifyX509Callback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
{
|
||||
char buf[256];
|
||||
X509 *err_cert;
|
||||
int err, depth;
|
||||
|
||||
err_cert = X509_STORE_CTX_get_current_cert(ctx);
|
||||
#ifdef AUTHSSL_DEBUG
|
||||
int err, depth;
|
||||
err = X509_STORE_CTX_get_error(ctx);
|
||||
depth = X509_STORE_CTX_get_error_depth(ctx);
|
||||
#endif
|
||||
|
@ -1248,7 +1248,6 @@ bool p3PeerMgrIMPL::addCandidateForOwnExternalAddress(const RsPeerId &from, cons
|
||||
|
||||
sockaddr_storage addr_filtered ;
|
||||
sockaddr_storage_copyip(addr_filtered,addr) ;
|
||||
time_t now = time(NULL) ;
|
||||
|
||||
#ifdef PEER_DEBUG
|
||||
std::cerr << "Own external address is " << sockaddr_storage_iptostring(addr_filtered) << ", as reported by friend " << from << std::endl;
|
||||
@ -1296,6 +1295,9 @@ static bool cleanIpList(std::list<pqiIpAddress>& lst,const RsPeerId& pid,p3LinkM
|
||||
{
|
||||
#ifdef PEER_DEBUG
|
||||
std::cerr << "Checking IP address " << sockaddr_storage_iptostring( (*it2).mAddr) << " for peer " << pid << ", age = " << now - (*it2).mSeenTime << std::endl;
|
||||
#else
|
||||
/* remove unused parameter warnings */
|
||||
(void) pid;
|
||||
#endif
|
||||
if(!link_mgr->checkPotentialAddr( (*it2).mAddr,now - (*it2).mSeenTime))
|
||||
{
|
||||
|
@ -290,6 +290,8 @@ bool pqissl::connect_parameter(uint32_t type, const std::string &value)
|
||||
{
|
||||
RsStackMutex stack(mSslMtx); /**** LOCKED MUTEX ****/
|
||||
|
||||
/* remove unused parameter warnings */
|
||||
(void) type;
|
||||
(void) value;
|
||||
return false;
|
||||
}
|
||||
|
@ -865,6 +865,9 @@ void p3discovery2::processContactInfo(const SSLID &fromId, const RsDiscContactIt
|
||||
std::cerr << "p3discovery2::processContactInfo(" << fromId << ") PGPID: ";
|
||||
std::cerr << item->pgpId << " Ignoring Info on self";
|
||||
std::cerr << std::endl;
|
||||
#else
|
||||
/* remove unused parameter warnings */
|
||||
(void) fromId;
|
||||
#endif
|
||||
delete item;
|
||||
return;
|
||||
@ -1025,7 +1028,7 @@ void p3discovery2::sendPGPCertificate(const PGPID &aboutId, const SSLID &toId)
|
||||
}
|
||||
|
||||
|
||||
void p3discovery2::recvPGPCertificate(const SSLID &fromId, RsDiscPgpCertItem *item)
|
||||
void p3discovery2::recvPGPCertificate(const SSLID &/*fromId*/, RsDiscPgpCertItem *item)
|
||||
{
|
||||
|
||||
#ifdef P3DISC_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user