From 0d9aaa86c6b6e9374e977fdf4a4958b64d5ca2ba Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 28 Aug 2015 14:07:18 -0700 Subject: [PATCH] Silence unused variable warning. --- src/tcpsockets/TCPConnector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcpsockets/TCPConnector.cpp b/src/tcpsockets/TCPConnector.cpp index 988edc407a..7930afe5f9 100644 --- a/src/tcpsockets/TCPConnector.cpp +++ b/src/tcpsockets/TCPConnector.cpp @@ -94,7 +94,6 @@ std::unique_ptr TCPConnector::connect(const char* server, return std::unique_ptr(new TCPStream(sd, &address)); } - long arg; fd_set sdset; struct timeval tv; socklen_t len; @@ -105,6 +104,7 @@ std::unique_ptr TCPConnector::connect(const char* server, u_long mode = 1; ioctlsocket(sd, FIONBIO, &mode); #else + long arg; arg = fcntl(sd, F_GETFL, nullptr); arg |= O_NONBLOCK; fcntl(sd, F_SETFL, arg);