mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
Merge pull request #55 from ScholarMidnight/develop
Added the /WX flag, which treats compiler warnings as errors in MSVC.
This commit is contained in:
commit
e13ed621f8
@ -131,6 +131,10 @@ if (MINGW)
|
|||||||
target_compile_definitions(easy_profiler PRIVATE -DSTRSAFE_NO_DEPRECATE)
|
target_compile_definitions(easy_profiler PRIVATE -DSTRSAFE_NO_DEPRECATE)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
target_compile_options(easy_profiler PRIVATE /WX)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
target_compile_options(easy_profiler PUBLIC -std=gnu++11)
|
target_compile_options(easy_profiler PUBLIC -std=gnu++11)
|
||||||
else ()
|
else ()
|
||||||
|
@ -248,7 +248,7 @@ int EasySocket::accept()
|
|||||||
fdexcl = fdread;
|
fdexcl = fdread;
|
||||||
tv.tv_sec = 0; tv.tv_usec = 500;
|
tv.tv_sec = 0; tv.tv_usec = 500;
|
||||||
|
|
||||||
int rc =select (m_socket+1, &fdread, &fdwrite, &fdexcl, &tv);
|
int rc =select ((int)m_socket+1, &fdread, &fdwrite, &fdexcl, &tv);
|
||||||
|
|
||||||
if(rc <= 0){
|
if(rc <= 0){
|
||||||
//there is no connection for accept
|
//there is no connection for accept
|
||||||
|
@ -370,7 +370,7 @@ namespace profiler {
|
|||||||
other.m_size = m_size;
|
other.m_size = m_size;
|
||||||
|
|
||||||
m_data = d;
|
m_data = d;
|
||||||
m_size = sz;
|
m_size = (size_t)sz;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user