Fixed Windows build warnings

This commit is contained in:
Fred Nicolson 2018-06-18 10:27:43 +01:00
parent 79d2037bc4
commit 20a3bd97d8
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ inline bool set_unix_socket_blocking(int32_t socket_descriptor, bool is_blocking
return true;
}
static void init_wsa()
inline static void init_wsa()
{
#ifdef _WIN32
static WSADATA wsaData = WSAData();

View File

@ -503,7 +503,7 @@ namespace fr
{
//Leave enough for the header
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_read_index = PACKET_HEADER_LENGTH;
}