From 6121e613eb8d544d5f6b10c96888a39a6c69fd75 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 20 Mar 2013 20:25:13 +0000 Subject: [PATCH] removed compilation warnings git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6258 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/dbase/cachestrapper.h | 4 ++-- libretroshare/src/ft/ftsearch.h | 2 +- libretroshare/src/retroshare/rsiface.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libretroshare/src/dbase/cachestrapper.h b/libretroshare/src/dbase/cachestrapper.h index 99bd6554b..c6e637f4c 100644 --- a/libretroshare/src/dbase/cachestrapper.h +++ b/libretroshare/src/dbase/cachestrapper.h @@ -187,7 +187,7 @@ class CacheSource bool clearCache(CacheId id); /* controls if peer is an accepted receiver for cache items. Default is yes. To be overloaded. */ - virtual bool isPeerAcceptedAsCacheReceiver(const std::string& peer_id) { return true ; } + virtual bool isPeerAcceptedAsCacheReceiver(const std::string& /*peer_id*/) { return true ; } /* get private data */ std::string getCacheDir() { return cacheDir; } @@ -276,7 +276,7 @@ class CacheStore /* virtual functions overloaded by cache implementor */ /* controls if peer is an accepted provider for cache items. Default is yes. To be overloaded. */ - virtual bool isPeerAcceptedAsCacheProvider(const std::string& peer_id) { return true ; } + virtual bool isPeerAcceptedAsCacheProvider(const std::string& /*peer_id*/) { return true ; } /*! * @param data cache data is stored here diff --git a/libretroshare/src/ft/ftsearch.h b/libretroshare/src/ft/ftsearch.h index 100864008..1ee7d6f80 100644 --- a/libretroshare/src/ft/ftsearch.h +++ b/libretroshare/src/ft/ftsearch.h @@ -42,7 +42,7 @@ class ftSearch public: ftSearch() { return; } virtual ~ftSearch() { return; } - virtual bool search(const std::string &hash, FileSearchFlags hintflags,const std::string& peer_id, FileInfo &info) const + virtual bool search(const std::string & /*hash*/, FileSearchFlags /*hintflags*/,const std::string& /*peer_id*/, FileInfo & /*info*/) const { std::cerr << "Non overloaded search method called!!!" << std::endl; return false; diff --git a/libretroshare/src/retroshare/rsiface.h b/libretroshare/src/retroshare/rsiface.h index 48e533def..d5e54878b 100644 --- a/libretroshare/src/retroshare/rsiface.h +++ b/libretroshare/src/retroshare/rsiface.h @@ -185,7 +185,7 @@ class NotifyBase virtual void notifyErrorMsg(int list, int sev, std::string msg) { (void) list; (void) sev; (void) msg; return; } virtual void notifyChatStatus(const std::string& /* peer_id */, const std::string& /* status_string */ ,bool /* is_private */) {} virtual void notifyChatLobbyEvent(uint64_t /* lobby id */,uint32_t /* event type */,const std::string& /* nickname */,const std::string& /* any string */) {} - virtual void notifyChatLobbyTimeShift(int time_shift) {} + virtual void notifyChatLobbyTimeShift(int /* time_shift */) {} virtual void notifyCustomState(const std::string& /* peer_id */, const std::string& /* status_string */) {} virtual void notifyHashingInfo(uint32_t type, const std::string& fileinfo) { (void) type; (void)fileinfo; } virtual void notifyTurtleSearchResult(uint32_t /* search_id */ ,const std::list& files) { (void)files; } @@ -206,7 +206,7 @@ class NotifyBase virtual bool askForPassword(const std::string& /* key_details */, bool /* prev_is_bad */, std::string& /* password */ ) { return false ;} virtual bool askForPluginConfirmation(const std::string& /* plugin_filename */, const std::string& /* plugin_file_hash */) { return false ;} - virtual bool askForDeferredSelfSignature(const void *data, const uint32_t len, unsigned char *sign, unsigned int *signlen,int& signature_result) { signature_result = false ;return true; } + virtual bool askForDeferredSelfSignature(const void * /* data */, const uint32_t /* len */, unsigned char * /* sign */, unsigned int * /* signlen */,int& signature_result ) { signature_result = false ;return true; } };