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:
parent
afbc46b607
commit
9b0e7fabc5
@ -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);
|
||||
|
@ -42,6 +42,7 @@ int EasySocket::_close(EasySocket::socket_t s)
|
||||
#else
|
||||
//TODO
|
||||
//return close(s);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user