Fix some compiler warnings

This commit is contained in:
Gioacchino Mazzurco 2018-01-30 00:36:19 +01:00
parent fc5ed14b89
commit feae9f5850
3 changed files with 7 additions and 6 deletions

View file

@ -1045,7 +1045,8 @@ ResponseTask* ChatHandler::handleLobbyParticipants(Request &req, Response &resp)
return new SendLobbyParticipantsTask(mRsIdentity, mit->second); return new SendLobbyParticipantsTask(mRsIdentity, mit->second);
} }
void ChatHandler::handleGetDefaultIdentityForChatLobby(Request& req, Response& resp) void ChatHandler::handleGetDefaultIdentityForChatLobby(Request& /*req*/,
Response& resp)
{ {
RsGxsId gxsId; RsGxsId gxsId;
mRsMsgs->getDefaultIdentityForChatLobby(gxsId); mRsMsgs->getDefaultIdentityForChatLobby(gxsId);

View file

@ -23,8 +23,8 @@ namespace resource_api
FileSharingHandler::FileSharingHandler(StateTokenServer *sts, RsFiles *files, FileSharingHandler::FileSharingHandler(StateTokenServer *sts, RsFiles *files,
RsNotify& notify): RsNotify& notify):
mStateTokenServer(sts), mRsFiles(files), mNotify(notify), mStateTokenServer(sts), mMtx("FileSharingHandler Mtx"), mRsFiles(files),
mMtx("FileSharingHandler Mtx") mNotify(notify)
{ {
addResourceHandler("*", this, &FileSharingHandler::handleWildcard); addResourceHandler("*", this, &FileSharingHandler::handleWildcard);
addResourceHandler("force_check", this, &FileSharingHandler::handleForceCheck); addResourceHandler("force_check", this, &FileSharingHandler::handleForceCheck);
@ -79,7 +79,7 @@ void FileSharingHandler::handleForceCheck(Request&, Response& resp)
resp.setOk(); resp.setOk();
} }
void FileSharingHandler::handleGetSharedDir(Request& req, Response& resp) void FileSharingHandler::handleGetSharedDir(Request& /*req*/, Response& resp)
{ {
DirDetails dirDetails; DirDetails dirDetails;
mRsFiles->RequestDirDetails(NULL, dirDetails, RS_FILE_HINTS_LOCAL); mRsFiles->RequestDirDetails(NULL, dirDetails, RS_FILE_HINTS_LOCAL);

View file

@ -8,8 +8,8 @@ namespace resource_api
TransfersHandler::TransfersHandler(StateTokenServer *sts, RsFiles *files, RsPeers *peers, TransfersHandler::TransfersHandler(StateTokenServer *sts, RsFiles *files, RsPeers *peers,
RsNotify& notify): RsNotify& notify):
mStateTokenServer(sts), mFiles(files), mRsPeers(peers), mLastUpdateTS(0), mNotify(notify), mStateTokenServer(sts), mFiles(files), mRsPeers(peers), mNotify(notify),
mMtx("TransfersHandler") mMtx("TransfersHandler"), mLastUpdateTS(0)
{ {
addResourceHandler("*", this, &TransfersHandler::handleWildcard); addResourceHandler("*", this, &TransfersHandler::handleWildcard);
addResourceHandler("downloads", this, &TransfersHandler::handleDownloads); addResourceHandler("downloads", this, &TransfersHandler::handleDownloads);