diff --git a/sync/base.h b/sync/base.h index c2fcf4e..87d90da 100644 --- a/sync/base.h +++ b/sync/base.h @@ -43,7 +43,15 @@ static inline int socket_poll(SOCKET socket) fd_set fds; FD_ZERO(&fds); + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable: 4127) +#endif FD_SET(socket, &fds); +#ifdef _MSC_VER +#pragma warning(pop) +#endif return select(0, &fds, NULL, NULL, &to) > 0; } diff --git a/sync_player.vcproj b/sync_player.vcproj index b62917d..24d279a 100644 --- a/sync_player.vcproj +++ b/sync_player.vcproj @@ -166,7 +166,7 @@ BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" - WarningLevel="3" + WarningLevel="4" DebugInformationFormat="4" />