mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 06:43:06 +00:00
[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.
This commit is contained in:
parent
6fe9441d32
commit
00124d1b1a
29 changed files with 113 additions and 82 deletions
9
sdk/lib/3rdparty/libxml2/CMakeLists.txt
vendored
9
sdk/lib/3rdparty/libxml2/CMakeLists.txt
vendored
|
@ -63,11 +63,8 @@ list(APPEND SOURCE
|
|||
libxml.h)
|
||||
|
||||
add_library(libxml2 ${SOURCE})
|
||||
target_link_libraries(libxml2 oldnames)
|
||||
add_pch(libxml2 libxml.h SOURCE)
|
||||
add_dependencies(libxml2 psdk)
|
||||
|
||||
if(MSVC)
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
# Formal parameter different from declaration
|
||||
add_target_compile_flags(libxml2 "/wd4101")
|
||||
# Local variable initialized but not referenced
|
||||
|
@ -75,3 +72,7 @@ if(MSVC)
|
|||
else()
|
||||
add_target_compile_flags(libxml2 "-w")
|
||||
endif()
|
||||
|
||||
target_link_libraries(libxml2 oldnames)
|
||||
add_pch(libxml2 libxml.h SOURCE)
|
||||
add_dependencies(libxml2 psdk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue