0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

g++ warnings fix

This commit is contained in:
Victor Zarubkin 2016-11-13 15:20:25 +03:00
parent afbc46b607
commit 9b0e7fabc5
3 changed files with 4 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ bool EasySocketListener::connect(const char* _ipaddress, uint16_t _port, profile
return isConnected;
}
int seek = bytes;
size_t seek = bytes;
while (seek < sizeof(profiler::net::EasyProfilerStatus))
{
bytes = m_easySocket.receive(buffer + seek, buffer_size - seek);

View File

@ -42,6 +42,7 @@ int EasySocket::_close(EasySocket::socket_t s)
#else
//TODO
//return close(s);
return 0;
#endif
}

View File

@ -982,7 +982,9 @@ void ProfileManager::listen()
case profiler::net::MESSAGE_TYPE_EVENT_TRACING_PRIORITY:
{
#if defined(_WIN32) || defined(EASY_DEBUG_NET_PRINT)
auto data = reinterpret_cast<const profiler::net::BoolMessage*>(message);
#endif
#ifdef EASY_DEBUG_NET_PRINT
printf("receive EVENT_TRACING_PRIORITY low=%d\n", data->flag ? 1 : 0);