mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 14:51:44 +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
|
@ -75,4 +75,7 @@ add_pch(mesa_main precomp.h SOURCE)
|
|||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(mesa_main "-Wno-type-limits")
|
||||
elseif(USE_CLANG_CL)
|
||||
add_target_compile_flags(mesa_main "-Wno-cast-calling-convention -Wno-unused-local-typedef")
|
||||
add_target_compile_flags(mesa_main "-Wno-tautological-unsigned-zero-compare -Wno-constant-conversion")
|
||||
endif()
|
||||
|
|
|
@ -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