mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 10:35:15 -05:00
Fix warnings
This commit is contained in:
parent
341a68ce07
commit
1d8bb44811
@ -140,10 +140,10 @@ JsonApiServer::JsonApiServer(uint16_t port, const std::string& bindAddress,
|
|||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
registerHandler("/rsControl/rsGlobalShutDown",
|
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);
|
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 std::shared_ptr<rb::Session> session,
|
||||||
const rb::Bytes& body )
|
const rb::Bytes& body )
|
||||||
{
|
{
|
||||||
|
@ -103,7 +103,7 @@ class peerState
|
|||||||
};
|
};
|
||||||
|
|
||||||
class RsNodeGroupItem;
|
class RsNodeGroupItem;
|
||||||
class RsGroupInfo;
|
struct RsGroupInfo;
|
||||||
|
|
||||||
std::string textPeerState(peerState &state);
|
std::string textPeerState(peerState &state);
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class cert;
|
|||||||
|
|
||||||
class pqissllistener;
|
class pqissllistener;
|
||||||
class p3LinkMgr;
|
class p3LinkMgr;
|
||||||
class RsPeerCryptoParams ;
|
struct RsPeerCryptoParams;
|
||||||
|
|
||||||
class pqissl: public NetBinInterface
|
class pqissl: public NetBinInterface
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "pqi/pqipersongrp.h"
|
#include "pqi/pqipersongrp.h"
|
||||||
|
|
||||||
class p3PeerMgr;
|
class p3PeerMgr;
|
||||||
class RsPeerCryptoParams;
|
struct RsPeerCryptoParams;
|
||||||
class pqissl ;
|
class pqissl ;
|
||||||
|
|
||||||
class pqisslpersongrp: public pqipersongrp
|
class pqisslpersongrp: public pqipersongrp
|
||||||
|
@ -65,7 +65,7 @@ class ToasterNotify;
|
|||||||
class ChatWidget;
|
class ChatWidget;
|
||||||
class ChatWidgetHolder;
|
class ChatWidgetHolder;
|
||||||
// for gxs based plugins
|
// for gxs based plugins
|
||||||
class RsIdentity;
|
struct RsIdentity;
|
||||||
class RsNxsNetMgr;
|
class RsNxsNetMgr;
|
||||||
class RsGxsIdExchange;
|
class RsGxsIdExchange;
|
||||||
class RsGcxs;
|
class RsGcxs;
|
||||||
|
@ -811,7 +811,7 @@ static bool checkAccount(const std::string &accountdir, AccountDetails &account,
|
|||||||
/* Use RetroShare's exe dir */
|
/* Use RetroShare's exe dir */
|
||||||
dataDirectory = ".";
|
dataDirectory = ".";
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
dataDirectory = defaultBaseDirectory()+"/usr/share/retroshare";
|
dataDirectory = PathBaseDirectory()+"/usr/share/retroshare";
|
||||||
#elif defined(DATA_DIR)
|
#elif defined(DATA_DIR)
|
||||||
// cppcheck-suppress ConfigurationNotChecked
|
// cppcheck-suppress ConfigurationNotChecked
|
||||||
dataDirectory = DATA_DIR;
|
dataDirectory = DATA_DIR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user