Commit 03f28587 authored by Ubuntu's avatar Ubuntu

Compiler fixes for strict C++11

parent d57c3eee
......@@ -6,7 +6,7 @@ DEFINES := -DNDEBUG
# CLANG compiler works fine
# CXX := /usr/bin/clang++
STANDARD_FLAGS := -Wall -Wuninitialized
STANDARD_FLAGS := -Wall -Wuninitialized --std=c++11
RELEASE_FLAGS := -O2
DEBUG_FLAGS := -g
......
......@@ -66,10 +66,10 @@ HRESULT CStunServer::InitializeTSA(const CStunServerConfig& config)
CSocketAddress advertised[4] = {config.addrPrimaryAdvertised, config.addrPrimaryAdvertised, config.addrAlternateAdvertised, config.addrAlternateAdvertised};
bool validity[4] = {true, config.fIsFullMode, config.fIsFullMode, config.fIsFullMode};
static_assert(RolePP == (SocketRole)0);
static_assert(RolePA == (SocketRole)1);
static_assert(RoleAP == (SocketRole)2);
static_assert(RoleAA == (SocketRole)3);
static_assert(RolePP == (SocketRole)0, "RolePP expected to be 0");
static_assert(RolePA == (SocketRole)1, "RolePA expected to be 1");
static_assert(RoleAP == (SocketRole)2, "RoleAP expected to be 2");
static_assert(RoleAA == (SocketRole)3, "RoleAA expected to be 3");
for (size_t i = 0; i < 4; i++)
{
......
......@@ -299,7 +299,7 @@ void CStunSocketThread::Run()
int err = errno;
if ((err == EAGAIN) || (err == EWOULDBLOCK))
{
Logging::LogMsg(LL_VERBOSE_EXTREME, "recvfromex returned timeout error");
// Logging::LogMsg(LL_VERBOSE_EXTREME, "recvfromex returned timeout error");
}
else
{
......
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