From 54b708089f95a07be4449301c5267ce71935f912 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 23 Feb 2019 17:10:00 +0100 Subject: [PATCH] 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& 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; ^ --- libresapi/src/api/FileSearchHandler.cpp | 6 +++--- libresapi/src/api/FileSearchHandler.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libresapi/src/api/FileSearchHandler.cpp b/libresapi/src/api/FileSearchHandler.cpp index 7f719aa5b..ceb3765c9 100644 --- a/libresapi/src/api/FileSearchHandler.cpp +++ b/libresapi/src/api/FileSearchHandler.cpp @@ -32,8 +32,8 @@ namespace resource_api { -FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle *turtle, RsFiles *files): - mStateTokenServer(sts), mNotify(notify), mTurtle(turtle), mRsFiles(files), +FileSearchHandler::FileSearchHandler(StateTokenServer *sts, RsNotify *notify, RsTurtle */*turtle*/, RsFiles *files): + mStateTokenServer(sts), mNotify(notify)/*, mTurtle(turtle)*/, mRsFiles(files), mMtx("FileSearchHandler") { mNotify->registerNotifyClient(this); @@ -50,7 +50,7 @@ FileSearchHandler::~FileSearchHandler() mStateTokenServer->discardToken(mSearchesStateToken); } -void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& pid,uint32_t search_id, const std::list& files) +void FileSearchHandler::notifyTurtleSearchResult(const RsPeerId& /*pid*/,uint32_t search_id, const std::list& files) { RS_STACK_MUTEX(mMtx); // ********** LOCKED ********** std::map::iterator mit = mSearches.find(search_id); diff --git a/libresapi/src/api/FileSearchHandler.h b/libresapi/src/api/FileSearchHandler.h index 7e9b294b1..ec1585eef 100644 --- a/libresapi/src/api/FileSearchHandler.h +++ b/libresapi/src/api/FileSearchHandler.h @@ -45,7 +45,7 @@ private: StateTokenServer* mStateTokenServer; RsNotify* mNotify; - RsTurtle* mTurtle; + //RsTurtle* mTurtle; RsFiles* mRsFiles; class Search{