From 5811a9e08e86921df06cedc40605fffefc46ea11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 24 Jul 2017 15:40:53 +0200 Subject: [PATCH] Lift C4548 for FD_SET Others encountered that as well: https://github.com/deflomu/cryptlib/blob/master/io/tcp.h#L572-L588 Nothing we can do about it ourselves. --- src/openrct2/network/TcpSocket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openrct2/network/TcpSocket.cpp b/src/openrct2/network/TcpSocket.cpp index 95b2986d51..31d1da73ec 100644 --- a/src/openrct2/network/TcpSocket.cpp +++ b/src/openrct2/network/TcpSocket.cpp @@ -281,7 +281,10 @@ public: fd_set writeFD; FD_ZERO(&writeFD); +#pragma warning(push) +#pragma warning(disable : 4548) // expression before comma has no effect; expected expression with side-effect FD_SET(_socket, &writeFD); +#pragma warning(pop) timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 0;