player: increase warning level and fix a warning
This commit is contained in:
parent
fbc958adeb
commit
878d1534f1
@ -43,7 +43,15 @@ static inline int socket_poll(SOCKET socket)
|
|||||||
fd_set fds;
|
fd_set fds;
|
||||||
|
|
||||||
FD_ZERO(&fds);
|
FD_ZERO(&fds);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4127)
|
||||||
|
#endif
|
||||||
FD_SET(socket, &fds);
|
FD_SET(socket, &fds);
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
return select(0, &fds, NULL, NULL, &to) > 0;
|
return select(0, &fds, NULL, NULL, &to) > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -166,7 +166,7 @@
|
|||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="4"
|
||||||
DebugInformationFormat="4"
|
DebugInformationFormat="4"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user