https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3d3377a5c021899557bd0…
commit 3d3377a5c021899557bd015b09ca8aae9816c075
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Jan 5 12:06:17 2019 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Mar 4 21:58:42 2019 +0100
[LIBTIRPC] Silence MSVC warnings
---
dll/3rdparty/libtirpc/CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/3rdparty/libtirpc/CMakeLists.txt b/dll/3rdparty/libtirpc/CMakeLists.txt
index aaa4ac036c..46714d6d71 100644
--- a/dll/3rdparty/libtirpc/CMakeLists.txt
+++ b/dll/3rdparty/libtirpc/CMakeLists.txt
@@ -2,7 +2,7 @@ spec2def(libtirpc.dll libtirpc/libtirpc.spec ADD_IMPORTLIB)
remove_definitions(-D_WIN32_WINNT=0x502)
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)
@@ -94,6 +94,7 @@ add_library(libtirpc SHARED
${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
if(MSVC AND (NOT USE_CLANG_CL))
+ add_target_compile_flags(libtirpc "/wd4101 /wd4133 /wd4473 /wd4477")
else()
# FIXME: Tons of warnings.
add_target_compile_flags(libtirpc "-w")