diff --git a/libretroshare/src/chat/distantchat.cc b/libretroshare/src/chat/distantchat.cc index 5b7460215..5dcb6d0b3 100644 --- a/libretroshare/src/chat/distantchat.cc +++ b/libretroshare/src/chat/distantchat.cc @@ -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(gitem) ; diff --git a/libretroshare/src/chat/p3chatservice.cc b/libretroshare/src/chat/p3chatservice.cc index 51e028277..308cbc3b2 100644 --- a/libretroshare/src/chat/p3chatservice.cc +++ b/libretroshare/src/chat/p3chatservice.cc @@ -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) ; diff --git a/libretroshare/src/ft/ftextralist.h b/libretroshare/src/ft/ftextralist.h index 882ab7f24..19f1be302 100644 --- a/libretroshare/src/ft/ftextralist.h +++ b/libretroshare/src/ft/ftextralist.h @@ -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; diff --git a/libretroshare/src/grouter/grouterclientservice.h b/libretroshare/src/grouter/grouterclientservice.h index 241abff34..00d9e546b 100644 --- a/libretroshare/src/grouter/grouterclientservice.h +++ b/libretroshare/src/grouter/grouterclientservice.h @@ -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; diff --git a/libretroshare/src/pqi/authssl.cc b/libretroshare/src/pqi/authssl.cc index ddfe117b5..661894512 100644 --- a/libretroshare/src/pqi/authssl.cc +++ b/libretroshare/src/pqi/authssl.cc @@ -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 diff --git a/libretroshare/src/pqi/p3peermgr.cc b/libretroshare/src/pqi/p3peermgr.cc index b69218478..dde9d3569 100644 --- a/libretroshare/src/pqi/p3peermgr.cc +++ b/libretroshare/src/pqi/p3peermgr.cc @@ -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& 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)) { diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index ff94dd1c6..8c88ed9e1 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -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; } diff --git a/libretroshare/src/services/p3discovery2.cc b/libretroshare/src/services/p3discovery2.cc index 72de5a6e3..0b95d2134 100644 --- a/libretroshare/src/services/p3discovery2.cc +++ b/libretroshare/src/services/p3discovery2.cc @@ -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