Fixed Windows build warnings
This commit is contained in:
parent
79d2037bc4
commit
20a3bd97d8
@ -121,7 +121,7 @@ inline bool set_unix_socket_blocking(int32_t socket_descriptor, bool is_blocking
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_wsa()
|
inline static void init_wsa()
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
static WSADATA wsaData = WSAData();
|
static WSADATA wsaData = WSAData();
|
||||||
|
|||||||
@ -503,7 +503,7 @@ namespace fr
|
|||||||
{
|
{
|
||||||
//Leave enough for the header
|
//Leave enough for the header
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
for(auto a = 0; a < PACKET_HEADER_LENGTH; ++a)
|
for(size_t a = 0; a < PACKET_HEADER_LENGTH; ++a)
|
||||||
buffer.push_back('0');
|
buffer.push_back('0');
|
||||||
buffer_read_index = PACKET_HEADER_LENGTH;
|
buffer_read_index = PACKET_HEADER_LENGTH;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user