From 878d1534f126244532a9d06f4ca3df06470d5dc8 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 27 Aug 2010 21:22:07 +0200 Subject: [PATCH] player: increase warning level and fix a warning --- sync/base.h | 8 ++++++++ sync_player.vcproj | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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" />