Commit b348619e authored by jselbie's avatar jselbie

fixed some warnings

parent 61d69fc8
...@@ -602,7 +602,7 @@ HRESULT LoadConfigsFromFile(const std::string& filename, std::vector<StartupArgs ...@@ -602,7 +602,7 @@ HRESULT LoadConfigsFromFile(const std::string& filename, std::vector<StartupArgs
configurations.push_back(args); configurations.push_back(args);
} }
} }
catch(ptree_error ex1) catch(ptree_error& ex1)
{ {
Logging::LogMsg(LL_ALWAYS, "Error processing configuration file: %s", ex1.what()); Logging::LogMsg(LL_ALWAYS, "Error processing configuration file: %s", ex1.what());
error = true; error = true;
......
...@@ -53,13 +53,13 @@ void CTCPStunThread::Reset() ...@@ -53,13 +53,13 @@ void CTCPStunThread::Reset()
_fListenSocketsOnEpoll = false; _fListenSocketsOnEpoll = false;
memset(&_tsaListen, '\0', sizeof(_tsaListen)); _tsaListen = {};
_fNeedToExit = false; _fNeedToExit = false;
_spAuth.ReleaseAndClear(); _spAuth.ReleaseAndClear();
_role = RolePP; _role = RolePP;
memset(&_tsa, '\0', sizeof(_tsa)); _tsa = {};
_maxConnections = c_MaxNumberOfConnectionsDefault; _maxConnections = c_MaxNumberOfConnectionsDefault;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment