Fix clang warnings for

../../../trunk/libresapi/src/api/FileSearchHandler.cpp:53:66: warning:
unused parameter 'pid' [-Wunused-parameter]
void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId&
pid,uint32_t search_id, const std::list<TurtleFileInfo>& files)
                                                                 ^
In file included from ../../../trunk/libresapi/src/api/
FileSearchHandler.cpp:24:
../../../trunk/libresapi/src/api/FileSearchHandler.h:48:15: warning:
private field 'mTurtle' is not used [-Wunused-private-field]
    RsTurtle* mTurtle;
              ^
This commit is contained in:
Phenom 2019-02-23 17:10:00 +01:00
parent dd7c658ed1
commit 54b708089f
2 changed files with 4 additions and 4 deletions

View File

@ -32,8 +32,8 @@
namespace resource_api namespace resource_api
{ {
FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle *turtle, RsFiles *files): FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle */*turtle*/, RsFiles *files):
mStateTokenServer(sts), mNotify(notify), mTurtle(turtle), mRsFiles(files), mStateTokenServer(sts), mNotify(notify)/*, mTurtle(turtle)*/, mRsFiles(files),
mMtx("FileSearchHandler") mMtx("FileSearchHandler")
{ {
mNotify->registerNotifyClient(this); mNotify->registerNotifyClient(this);
@ -50,7 +50,7 @@ FileSearchHandler::~FileSearchHandler()
mStateTokenServer->discardToken(mSearchesStateToken); mStateTokenServer->discardToken(mSearchesStateToken);
} }
void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& pid,uint32_t search_id, const std::list<TurtleFileInfo>& files) void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& /*pid*/,uint32_t search_id, const std::list<TurtleFileInfo>& files)
{ {
RS_STACK_MUTEX(mMtx); // ********** LOCKED ********** RS_STACK_MUTEX(mMtx); // ********** LOCKED **********
std::map<uint32_t, Search>::iterator mit = mSearches.find(search_id); std::map<uint32_t, Search>::iterator mit = mSearches.find(search_id);

View File

@ -45,7 +45,7 @@ private:
StateTokenServer* mStateTokenServer; StateTokenServer* mStateTokenServer;
RsNotify* mNotify; RsNotify* mNotify;
RsTurtle* mTurtle; //RsTurtle* mTurtle;
RsFiles* mRsFiles; RsFiles* mRsFiles;
class Search{ class Search{