player: increase warning level and fix a warning

This commit is contained in:
Erik Faye-Lund 2010-08-27 21:22:07 +02:00
parent fbc958adeb
commit 878d1534f1
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}

View File

@ -166,7 +166,7 @@
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
WarningLevel="4"
DebugInformationFormat="4"
/>
<Tool