[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.

This commit is contained in:
Amine Khaldi 2017-12-03 23:30:10 +01:00
parent 6fe9441d32
commit 00124d1b1a
29 changed files with 113 additions and 82 deletions

View file

@ -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()