mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[LIBTIRPC] Silence MSVC warnings
This commit is contained in:
parent
7dabd235ec
commit
3d3377a5c0
1 changed files with 2 additions and 1 deletions
3
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
3
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
|
@ -2,7 +2,7 @@ spec2def(libtirpc.dll libtirpc/libtirpc.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x600)
|
add_definitions(-D_WIN32_WINNT=0x600)
|
||||||
add_definitions(-DUNICODE -D_WIN32 -DPORTMAP -Dstrdup=_strdup)
|
add_definitions(-DUNICODE -D_WIN32 -DPORTMAP -Dstrdup=_strdup -D_CRT_NONSTDC_NO_DEPRECATE=1)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/dll/3rdparty/libtirpc/tirpc)
|
include_directories(${REACTOS_SOURCE_DIR}/dll/3rdparty/libtirpc/tirpc)
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ add_library(libtirpc SHARED
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
|
${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
|
||||||
|
|
||||||
if(MSVC AND (NOT USE_CLANG_CL))
|
if(MSVC AND (NOT USE_CLANG_CL))
|
||||||
|
add_target_compile_flags(libtirpc "/wd4101 /wd4133 /wd4473 /wd4477")
|
||||||
else()
|
else()
|
||||||
# FIXME: Tons of warnings.
|
# FIXME: Tons of warnings.
|
||||||
add_target_compile_flags(libtirpc "-w")
|
add_target_compile_flags(libtirpc "-w")
|
||||||
|
|
Loading…
Reference in a new issue