Fix warnings

This commit is contained in:
Gioacchino Mazzurco 2018-10-05 01:55:18 +02:00
parent 341a68ce07
commit 1d8bb44811
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
6 changed files with 7 additions and 7 deletions

View File

@ -140,10 +140,10 @@ JsonApiServer::JsonApiServer(uint16_t port, const std::string& bindAddress,
}, false);
registerHandler("/rsControl/rsGlobalShutDown",
[this](const std::shared_ptr<rb::Session> session)
[](const std::shared_ptr<rb::Session> session)
{
size_t reqSize = session->get_request()->get_header("Content-Length", 0);
session->fetch( reqSize, [this](
session->fetch( reqSize, [](
const std::shared_ptr<rb::Session> session,
const rb::Bytes& body )
{

View File

@ -103,7 +103,7 @@ class peerState
};
class RsNodeGroupItem;
class RsGroupInfo;
struct RsGroupInfo;
std::string textPeerState(peerState &state);

View File

@ -76,7 +76,7 @@ class cert;
class pqissllistener;
class p3LinkMgr;
class RsPeerCryptoParams ;
struct RsPeerCryptoParams;
class pqissl: public NetBinInterface
{

View File

@ -25,7 +25,7 @@
#include "pqi/pqipersongrp.h"
class p3PeerMgr;
class RsPeerCryptoParams;
struct RsPeerCryptoParams;
class pqissl ;
class pqisslpersongrp: public pqipersongrp

View File

@ -65,7 +65,7 @@ class ToasterNotify;
class ChatWidget;
class ChatWidgetHolder;
// for gxs based plugins
class RsIdentity;
struct RsIdentity;
class RsNxsNetMgr;
class RsGxsIdExchange;
class RsGcxs;

View File

@ -811,7 +811,7 @@ static bool checkAccount(const std::string &accountdir, AccountDetails &account,
/* Use RetroShare's exe dir */
dataDirectory = ".";
#elif defined(ANDROID)
dataDirectory = defaultBaseDirectory()+"/usr/share/retroshare";
dataDirectory = PathBaseDirectory()+"/usr/share/retroshare";
#elif defined(DATA_DIR)
// cppcheck-suppress ConfigurationNotChecked
dataDirectory = DATA_DIR;