From 9148fa66450f30dcb307feb7c8b24057a8fa03cf Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 14:38:17 +0200 Subject: [PATCH] Fix clang warning: unused variables 'RS_NET_DOWN', ... /libretroshare/src/pqi/p3netmgr.cc:60: warning: unused variable 'RS_NET_DOWN' [-Wunused-const-variable] const uint32_t RS_NET_DOWN = 0x0007; /libretroshare/src/pqi/p3netmgr.cc:63: warning: unused variable 'RS_STUN_DHT' [-Wunused-const-variable] const uint32_t RS_STUN_DHT = 0x0001; /libretroshare/src/pqi/p3netmgr.cc:64: warning: unused variable 'RS_STUN_DONE' [-Wunused-const-variable] const uint32_t RS_STUN_DONE = 0x0002; /libretroshare/src/pqi/p3netmgr.cc:65: warning: unused variable 'RS_STUN_LIST_MIN' [-Wunused-const-variable] const uint32_t RS_STUN_LIST_MIN = 100; /libretroshare/src/pqi/p3netmgr.cc:66: warning: unused variable 'RS_STUN_FOUND_MIN' [-Wunused-const-variable] const uint32_t RS_STUN_FOUND_MIN = 10; /libretroshare/src/pqi/p3netmgr.cc:70: warning: unused variable 'MAX_NETWORK_INIT' [-Wunused-const-variable] const uint32_t MAX_NETWORK_INIT = 70; /* timeout before network reset */ /libretroshare/src/pqi/p3netmgr.cc:72: warning: unused variable 'MIN_TIME_BETWEEN_NET_RESET' [-Wunused-const-variable] const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5; --- libretroshare/src/pqi/p3netmgr.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libretroshare/src/pqi/p3netmgr.cc b/libretroshare/src/pqi/p3netmgr.cc index acfa32852..a34119ed5 100644 --- a/libretroshare/src/pqi/p3netmgr.cc +++ b/libretroshare/src/pqi/p3netmgr.cc @@ -57,19 +57,19 @@ 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 RS_NET_DOWN = 0x0007; /* Stun modes (TODO) */ -const uint32_t RS_STUN_DHT = 0x0001; -const uint32_t RS_STUN_DONE = 0x0002; -const uint32_t RS_STUN_LIST_MIN = 100; -const uint32_t RS_STUN_FOUND_MIN = 10; +//const uint32_t RS_STUN_DHT = 0x0001; +//const uint32_t RS_STUN_DONE = 0x0002; +//const uint32_t RS_STUN_LIST_MIN = 100; +//const uint32_t RS_STUN_FOUND_MIN = 10; const uint32_t MAX_UPNP_INIT = 60; /* seconds UPnP timeout */ const uint32_t MAX_UPNP_COMPLETE = 600; /* 10 min... seems to take a while */ -const uint32_t MAX_NETWORK_INIT = 70; /* timeout before network reset */ +//const uint32_t MAX_NETWORK_INIT = 70; /* timeout before network reset */ -const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5; +//const uint32_t MIN_TIME_BETWEEN_NET_RESET = 5; /**** * #define NETMGR_DEBUG 1