From d21b41f8712ffa70165fb33d2141fed9d36a03fb Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 21 Jul 2017 19:02:34 +0200 Subject: [PATCH] Fix CppCheck in p3netmgr.cc /libretroshare/src/pqi/p3netmgr.cc:926: warning: Cppcheck(unreadVariable): Variable 'title' is assigned a value that is never used. /libretroshare/src/pqi/p3netmgr.cc:1808: warning: Cppcheck(unreadVariable): Variable 'connectstr' is assigned a value that is never used. --- libretroshare/src/pqi/p3netmgr.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/p3netmgr.cc b/libretroshare/src/pqi/p3netmgr.cc index a34119ed5..03c809789 100644 --- a/libretroshare/src/pqi/p3netmgr.cc +++ b/libretroshare/src/pqi/p3netmgr.cc @@ -923,8 +923,8 @@ void p3NetMgrIMPL::netExtCheck() //pqiNotify *notify = getPqiNotify(); //if (notify) { - std::string title = - "Warning: Bad Firewall Configuration"; + //std::string title = + // "Warning: Bad Firewall Configuration"; std::string msg; msg += " **** WARNING **** \n"; @@ -1814,7 +1814,7 @@ void p3NetMgrIMPL::updateNetStateBox_temporal() std::cerr << std::endl; std::cerr << "\tNetState: " << netstatestr; std::cerr << std::endl; - std::cerr << "\tConnectModes: " << netstatestr; + std::cerr << "\tConnectModes: " << connectstr; std::cerr << std::endl; std::cerr << "\tNetworkMode: " << netmodestr; std::cerr << std::endl;