Wrap debug variable in ifdef
avoidss unused variable error in clang
This commit is contained in:
parent
235b8f1f6b
commit
19121d2962
@ -823,7 +823,9 @@ bool cServerHandleImpl::Listen(UInt16 a_Port)
|
||||
if (!IsValidSocket(MainSock))
|
||||
{
|
||||
// Failed to create IPv6 socket, create an IPv4 one instead:
|
||||
#ifdef DEBUG
|
||||
int err = EVUTIL_SOCKET_ERROR();
|
||||
#endif
|
||||
LOGD("Failed to create IPv6 MainSock: %d (%s)", err, evutil_socket_error_to_string(err));
|
||||
MainSock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||
if (!IsValidSocket(MainSock))
|
||||
|
Loading…
Reference in New Issue
Block a user