mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
[0.4.11][LIBTIRPC] Mute 30 MSVC2010SP1 x86 dbg warnings C4996, C4101, C4133 CORE-18104
can be observed with MSVC 2010SP1 (16.0.40219.1)
This fixes 30 warnings of multiple kind, e.g.:
27 of the kind:
C:\047rls\reactos\dll\3rdparty\libtirpc\src\auth_sspi.c(107) : warning C4996: '_strdup': Deprecated POSIX name, Try _strdup instead!
and also:
C:\047rls\reactos\dll\3rdparty\libtirpc\src\svc_vc.c(315) : warning C4101: 'cleanfds' : unreferenced local variable
C:\047rls\reactos\dll\3rdparty\libtirpc\src\svc_vc.c(488) : warning C4101: 'pollfd' : unreferenced local variable
C:\047rls\reactos\dll\3rdparty\libtirpc\src\xdr_rec.c(424) : warning C4133: '=' : incompatible types - from 'char *' to 'int32_t *'
Muting makes sense for this *3rd party library*. Better than creating more diff within here by addressing them.
This leaves no warnings left within this lib.
Fix picked from:
0.4.12-dev-803-g 3d3377a5c0
This commit is contained in:
parent
d5808595b5
commit
a834befbc8
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)
|
||||
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)
|
||||
|
||||
|
@ -95,6 +95,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")
|
||||
|
|
Loading…
Reference in a new issue