[CMAKE] When disabling C4101, explicitly remove the error flag.

Fixes VC2010 build.
Addendum to 11ecf5c969.
This commit is contained in:
Thomas Faber 2020-02-24 12:36:05 +01:00
parent 5d8c39753e
commit 80296be1eb
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
4 changed files with 5 additions and 1 deletions

View file

@ -65,7 +65,8 @@ list(APPEND SOURCE
add_library(libxml2 ${SOURCE})
if(MSVC AND (NOT USE_CLANG_CL))
# Formal parameter different from declaration
# Unreferenced local variable
replace_compile_flags("/we4101" " ")
add_target_compile_flags(libxml2 "/wd4101")
# Local variable initialized but not referenced
replace_compile_flags("/we4189" " ")