Fix clang warning for

In file included from ../../../trunk/libretroshare/src/gxs/rsgxsutil.cc:
26:
../../../trunk/libretroshare/src/gxs/rsgxsutil.h:217:16: warning:
private field 'mSerializer' is not used [-Wunused-private-field]
        RsSerialType& mSerializer;
                      ^
This commit is contained in:
Phenom 2019-02-22 23:27:40 +01:00
parent b46e07191f
commit dd7c658ed1
2 changed files with 7 additions and 6 deletions

View File

@ -148,7 +148,10 @@ bool RsGxsMessageCleanUp::clean()
RsGxsIntegrityCheck::RsGxsIntegrityCheck(
RsGeneralDataService* const dataService, RsGenExchange* genex,
RsSerialType& serializer, RsGixs* gixs ) :
mDs(dataService), mGenExchangeClient(genex), mSerializer(serializer),
mDs(dataService), mGenExchangeClient(genex),
#ifdef RS_DEEP_SEARCH
mSerializer(serializer),
#endif
mDone(false), mIntegrityMutex("integrity"), mGixs(gixs) {}
void RsGxsIntegrityCheck::run()

View File

@ -21,8 +21,7 @@
* *
*******************************************************************************/
#ifndef GXSUTIL_H_
#define GXSUTIL_H_
#pragma once
#include <vector>
#include "rsitems/rsnxsitems.h"
@ -214,8 +213,9 @@ private:
RsGeneralDataService* const mDs;
RsGenExchange *mGenExchangeClient;
#ifdef RS_DEEP_SEARCH
RsSerialType& mSerializer;
#endif
bool mDone;
RsMutex mIntegrityMutex;
std::list<RsGxsGroupId> mDeletedGrps;
@ -262,5 +262,3 @@ public:
GxsMsgReq mMsgs ;
uint32_t mToken;
};
#endif /* GXSUTIL_H_ */