mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 04:46:37 +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
|
@ -31,8 +31,11 @@ add_library(mesa_swrast STATIC ${SOURCE})
|
|||
add_dependencies(mesa_swrast xdk)
|
||||
add_pch(mesa_swrast precomp.h SOURCE)
|
||||
|
||||
if(MSVC)
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
replace_compile_flags("/we4189" " ")
|
||||
else()
|
||||
add_target_compile_flags(mesa_swrast "-Wno-unused-variable")
|
||||
if(USE_CLANG_CL)
|
||||
add_target_compile_flags(mesa_swrast "-Wno-sometimes-uninitialized -Wno-unused-local-typedef")
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue