Removed unused parameter warnings in libretroshare.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4558 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-08-12 13:42:30 +00:00
parent 27842b8592
commit c6beee44ec
61 changed files with 1047 additions and 983 deletions

View file

@ -460,7 +460,7 @@ bool p3Channels::getMessageCount(const std::string cId, unsigned int &newCount,
return true;
}
bool p3Channels::channelExtraFileHash(std::string path, std::string chId, FileInfo& fInfo){
bool p3Channels::channelExtraFileHash(std::string path, std::string /*chId*/, FileInfo& fInfo){
// get file name
std::string fname, fnameBuff;
@ -533,7 +533,7 @@ RsSerialType *p3Channels::createSerialiser()
return new RsChannelSerialiser();
}
bool p3Channels::locked_checkDistribMsg(RsDistribMsg *msg)
bool p3Channels::locked_checkDistribMsg(RsDistribMsg */*msg*/)
{
return true;
}
@ -727,7 +727,7 @@ const uint32_t DOWNLOAD_PERIOD = 7 * 24 * 3600;
* on a subscription to a channel..
*/
bool p3Channels::locked_eventDuplicateMsg(GroupInfo *grp, RsDistribMsg *msg, const std::string& id, bool historical)
bool p3Channels::locked_eventDuplicateMsg(GroupInfo *grp, RsDistribMsg *msg, const std::string& id, bool /*historical*/)
{
std::string grpId = msg->grpId;
std::string msgId = msg->msgId;

View file

@ -843,7 +843,7 @@ void p3disc::recvDiscReply(RsDiscReply *dri)
void p3disc::removeFriend(std::string ssl_id)
void p3disc::removeFriend(std::string /*ssl_id*/)
{
// DON'T KNOW WHY SSL IDS were saved -> the results are never used
@ -1229,7 +1229,7 @@ RsSerialiser *p3disc::setupSerialiser()
return rss ;
}
bool p3disc::saveList(bool& cleanup, std::list<RsItem*>& lst)
bool p3disc::saveList(bool& cleanup, std::list<RsItem*>& /*lst*/)
{
#ifdef P3DISC_DEBUG
std::cerr << "p3disc::saveList() called" << std::endl;
@ -1272,10 +1272,10 @@ bool p3disc::loadList(std::list<RsItem*>& load)
std::list<RsItem *>::iterator it;
for(it = load.begin(); it != load.end(); it++)
{
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet *>(*it);
// DON'T KNOW WHY SSL IDS were saved -> the results are never used
#if 0
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet *>(*it);
if(vitem)
{
#ifdef P3DISC_DEBUG

View file

@ -4470,7 +4470,7 @@ void p3GroupDistrib::getGrpListPubKeyAvailable(std::list<std::string>& grpList)
}
bool p3GroupDistrib::locked_checkDistribMsg(
GroupInfo &gi, RsDistribMsg *msg)
GroupInfo &/*gi*/, RsDistribMsg *msg)
{
/* check timestamp */
@ -4804,7 +4804,7 @@ std::ostream &operator<<(std::ostream &out, const GroupInfo &info)
return out;
}
void p3GroupDistrib::locked_notifyGroupChanged(GroupInfo &info, uint32_t flags, bool historical)
void p3GroupDistrib::locked_notifyGroupChanged(GroupInfo &info, uint32_t /*flags*/, bool /*historical*/)
{
mGroupsChanged = true;
info.grpChanged = true;
@ -4876,7 +4876,7 @@ std::ostream &operator<<(std::ostream &out, const RsDistribDummyMsg &msg)
bool p3GroupDistrib::locked_CheckNewMsgDummies(GroupInfo &grp, RsDistribMsg *msg, std::string id, bool historical)
bool p3GroupDistrib::locked_CheckNewMsgDummies(GroupInfo &grp, RsDistribMsg *msg, std::string /*id*/, bool /*historical*/)
{
std::string threadId = msg->threadId;
std::string parentId = msg->parentId;

View file

@ -48,7 +48,7 @@ std::ostream &operator<<(std::ostream &out, const ForumInfo &info)
return out;
}
std::ostream &operator<<(std::ostream &out, const ThreadInfoSummary &info)
std::ostream &operator<<(std::ostream &out, const ThreadInfoSummary &/*info*/)
{
out << "ThreadInfoSummary:";
out << std::endl;
@ -58,7 +58,7 @@ std::ostream &operator<<(std::ostream &out, const ThreadInfoSummary &info)
return out;
}
std::ostream &operator<<(std::ostream &out, const ForumMsgInfo &info)
std::ostream &operator<<(std::ostream &out, const ForumMsgInfo &/*info*/)
{
out << "ForumMsgInfo:";
out << std::endl;
@ -482,20 +482,20 @@ RsSerialType *p3Forums::createSerialiser()
return new RsForumSerialiser();
}
bool p3Forums::locked_checkDistribMsg(RsDistribMsg *msg)
bool p3Forums::locked_checkDistribMsg(RsDistribMsg */*msg*/)
{
return true;
}
RsDistribGrp *p3Forums::locked_createPublicDistribGrp(GroupInfo &info)
RsDistribGrp *p3Forums::locked_createPublicDistribGrp(GroupInfo &/*info*/)
{
RsDistribGrp *grp = NULL; //new RsForumGrp();
return grp;
}
RsDistribGrp *p3Forums::locked_createPrivateDistribGrp(GroupInfo &info)
RsDistribGrp *p3Forums::locked_createPrivateDistribGrp(GroupInfo &/*info*/)
{
RsDistribGrp *grp = NULL; //new RsForumGrp();
@ -634,12 +634,12 @@ void p3Forums::locked_notifyGroupChanged(GroupInfo &grp, uint32_t flags, bool h
return p3GroupDistrib::locked_notifyGroupChanged(grp, flags, historical);
}
bool p3Forums::locked_eventDuplicateMsg(GroupInfo *grp, RsDistribMsg *msg, const std::string& id, bool historical)
bool p3Forums::locked_eventDuplicateMsg(GroupInfo */*grp*/, RsDistribMsg */*msg*/, const std::string& /*id*/, bool /*historical*/)
{
return true;
}
bool p3Forums::locked_eventNewMsg(GroupInfo *grp, RsDistribMsg *msg, const std::string& id, bool historical)
bool p3Forums::locked_eventNewMsg(GroupInfo */*grp*/, RsDistribMsg *msg, const std::string& /*id*/, bool historical)
{
std::string grpId = msg->grpId;
std::string msgId = msg->msgId;

View file

@ -480,6 +480,9 @@ bool p3GameLauncher::playGame(std::string gameId)
bool p3GameLauncher::quitGame(std::string gameId)
{
/* remove unused parameter warnings */
(void) gameId;
#ifdef GAME_DEBUG
std::cerr << "p3GameLauncher::checkGameProperties()";
std::cerr << " gameId: " << gameId;
@ -1231,7 +1234,7 @@ int p3GameLauncher::handleClientReady(RsGameItem *gi)
}
/* PAUSE / QUIT msg */
int p3GameLauncher::handleClientActive(RsGameItem *gi)
int p3GameLauncher::handleClientActive(RsGameItem */*gi*/)
{
#ifdef GAME_DEBUG
std::cerr << "p3GameLauncher::handleClientActive()";
@ -1282,7 +1285,7 @@ int p3GameLauncher::handleServerSetup(RsGameItem *gi)
/* This is a setup update from server
* only updates the players...
*/
int p3GameLauncher::handleServerActive(RsGameItem *gi)
int p3GameLauncher::handleServerActive(RsGameItem */*gi*/)
{
#ifdef GAME_DEBUG
std::cerr << "p3GameLauncher::handleServerActive()";

View file

@ -191,7 +191,7 @@ int p3MsgService::incomingMsgs()
return 1;
}
void p3MsgService::statusChange(const std::list<pqipeer> &plist)
void p3MsgService::statusChange(const std::list<pqipeer> &/*plist*/)
{
/* should do it properly! */
checkOutgoingMessages();

View file

@ -166,6 +166,9 @@ int p3PhotoService::loadCache(const CacheData &data)
void p3PhotoService::loadPhotoIndex(std::string filename, std::string hash, std::string src)
{
/* remove unused parameter warnings */
(void) hash;
/* create the serialiser to load info */
RsSerialiser *rsSerialiser = new RsSerialiser();
rsSerialiser->addSerialType(new RsPhotoSerialiser());
@ -283,7 +286,7 @@ bool p3PhotoService::loadPhotoShowItem(RsPhotoShowItem *item)
return true;
}
void p3PhotoService::availablePhoto(std::string filename, std::string hash, std::string src)
void p3PhotoService::availablePhoto(std::string /*filename*/, std::string /*hash*/, std::string /*src*/)
{
/* TODO */
return;
@ -467,7 +470,7 @@ bool p3PhotoService::getShowList(std::string id, std::list<std::string> &showIds
return true;
}
bool p3PhotoService::getShowDetails(std::string id, std::string showId, RsPhotoShowDetails &detail)
bool p3PhotoService::getShowDetails(std::string id, std::string showId, RsPhotoShowDetails &/*detail*/)
{
#ifdef PHOTO_DEBUG
std::cerr << "p3PhotoService::getShowDetails() pid: " << id;
@ -572,7 +575,7 @@ bool p3PhotoService::deleteShow(std::string showId)
}
bool p3PhotoService::addPhotoToShow(std::string showId, std::string photoId, int16_t index)
bool p3PhotoService::addPhotoToShow(std::string showId, std::string photoId, int16_t /*index*/)
{
#ifdef PHOTO_DEBUG
@ -612,12 +615,12 @@ bool p3PhotoService::addPhotoToShow(std::string showId, std::string photoId, int
return true;
}
bool p3PhotoService::movePhotoInShow(std::string showId, std::string photoId, int16_t index)
bool p3PhotoService::movePhotoInShow(std::string /*showId*/, std::string /*photoId*/, int16_t /*index*/)
{
return false;
}
bool p3PhotoService::removePhotoFromShow(std::string showId, std::string photoId)
bool p3PhotoService::removePhotoFromShow(std::string /*showId*/, std::string /*photoId*/)
{
return false;
}
@ -667,29 +670,29 @@ std::string p3PhotoService::addPhoto(std::string path) /* add from file */
bool p3PhotoService::addPhoto(std::string srcId, std::string photoId) /* add from peers photos */
bool p3PhotoService::addPhoto(std::string /*srcId*/, std::string /*photoId*/) /* add from peers photos */
{
return false;
}
bool p3PhotoService::deletePhoto(std::string photoId)
bool p3PhotoService::deletePhoto(std::string /*photoId*/)
{
return false;
}
/* modify properties (TODO) */
bool p3PhotoService::modifyShow(std::string showId, std::wstring name, std::wstring comment)
bool p3PhotoService::modifyShow(std::string /*showId*/, std::wstring /*name*/, std::wstring /*comment*/)
{
return false;
}
bool p3PhotoService::modifyPhoto(std::string photoId, std::wstring name, std::wstring comment)
bool p3PhotoService::modifyPhoto(std::string /*photoId*/, std::wstring /*name*/, std::wstring /*comment*/)
{
return false;
}
bool p3PhotoService::modifyShowComment(std::string showId, std::string photoId, std::wstring comment)
bool p3PhotoService::modifyShowComment(std::string /*showId*/, std::string /*photoId*/, std::wstring /*comment*/)
{
return false;
}