mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Fix clang warning: unused variables 'RS_NET_NEEDS_RESET', ...
/libretroshare/src/pqi/p3peermgr.cc:53: warning: unused variable 'RS_NET_NEEDS_RESET' [-Wunused-const-variable] const uint32_t RS_NET_NEEDS_RESET = 0x0000; /libretroshare/src/pqi/p3peermgr.cc:54: warning: unused variable 'RS_NET_UNKNOWN' [-Wunused-const-variable] const uint32_t RS_NET_UNKNOWN = 0x0001; /libretroshare/src/pqi/p3peermgr.cc:55: warning: unused variable 'RS_NET_UPNP_INIT' [-Wunused-const-variable] const uint32_t RS_NET_UPNP_INIT = 0x0002; /libretroshare/src/pqi/p3peermgr.cc:56: warning: unused variable 'RS_NET_UPNP_SETUP' [-Wunused-const-variable] const uint32_t RS_NET_UPNP_SETUP = 0x0003; /libretroshare/src/pqi/p3peermgr.cc:57: warning: unused variable 'RS_NET_EXT_SETUP' [-Wunused-const-variable] const uint32_t RS_NET_EXT_SETUP = 0x0004; /libretroshare/src/pqi/p3peermgr.cc:58: warning: unused variable 'RS_NET_DONE' [-Wunused-const-variable] const uint32_t RS_NET_DONE = 0x0005; /libretroshare/src/pqi/p3peermgr.cc:59: warning: unused variable 'RS_NET_LOOPBACK' [-Wunused-const-variable] const uint32_t RS_NET_LOOPBACK = 0x0006; /libretroshare/src/pqi/p3peermgr.cc:60: warning: unused variable 'RS_NET_DOWN' [-Wunused-const-variable] const uint32_t RS_NET_DOWN = 0x0007; /libretroshare/src/pqi/p3peermgr.cc:62: warning: unused variable 'MIN_TIME_BETWEEN_NET_RESET' [-Wunused-const-variable] const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5; /libretroshare/src/pqi/p3peermgr.cc:64: warning: unused variable 'PEER_IP_CONNECT_STATE_MAX_LIST_SIZE' [-Wunused-const-variable] const uint32_t PEER_IP_CONNECT_STATE_MAX_LIST_SIZE = 4;
This commit is contained in:
parent
4152a46ad8
commit
5a64996304
@ -50,18 +50,19 @@
|
||||
|
||||
/* Network setup States */
|
||||
|
||||
const uint32_t RS_NET_NEEDS_RESET = 0x0000;
|
||||
const uint32_t RS_NET_UNKNOWN = 0x0001;
|
||||
const uint32_t RS_NET_UPNP_INIT = 0x0002;
|
||||
const uint32_t RS_NET_UPNP_SETUP = 0x0003;
|
||||
const uint32_t RS_NET_EXT_SETUP = 0x0004;
|
||||
const uint32_t RS_NET_DONE = 0x0005;
|
||||
const uint32_t RS_NET_LOOPBACK = 0x0006;
|
||||
const uint32_t RS_NET_DOWN = 0x0007;
|
||||
//Defined and used in /libretroshare/src/pqi/p3netmgr.cc
|
||||
//const uint32_t RS_NET_NEEDS_RESET = 0x0000;
|
||||
//const uint32_t RS_NET_UNKNOWN = 0x0001;
|
||||
//const uint32_t RS_NET_UPNP_INIT = 0x0002;
|
||||
//const uint32_t RS_NET_UPNP_SETUP = 0x0003;
|
||||
//const uint32_t RS_NET_EXT_SETUP = 0x0004;
|
||||
//const uint32_t RS_NET_DONE = 0x0005;
|
||||
//const uint32_t RS_NET_LOOPBACK = 0x0006;
|
||||
//const uint32_t RS_NET_DOWN = 0x0007;
|
||||
|
||||
const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5;
|
||||
//const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5;
|
||||
|
||||
const uint32_t PEER_IP_CONNECT_STATE_MAX_LIST_SIZE = 4;
|
||||
//const uint32_t PEER_IP_CONNECT_STATE_MAX_LIST_SIZE = 4;
|
||||
|
||||
static struct RsLog::logInfo p3peermgrzoneInfo = {RsLog::Default, "p3peermgr"};
|
||||
#define p3peermgrzone &p3peermgrzoneInfo
|
||||
|
Loading…
Reference in New Issue
Block a user