mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[CMAKE] When disabling C4101, explicitly remove the error flag.
Fixes VC2010 build.
Addendum to 11ecf5c969
.
This commit is contained in:
parent
5d8c39753e
commit
80296be1eb
4 changed files with 5 additions and 1 deletions
1
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
1
dll/3rdparty/libtirpc/CMakeLists.txt
vendored
|
@ -102,6 +102,7 @@ add_library(libtirpc MODULE
|
|||
${CMAKE_CURRENT_BINARY_DIR}/libtirpc.def)
|
||||
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
replace_compile_flags("/we4101" " ")
|
||||
add_target_compile_flags(libtirpc "/wd4101 /wd4133 /wd4473 /wd4477")
|
||||
else()
|
||||
# FIXME: Tons of warnings.
|
||||
|
|
|
@ -94,6 +94,7 @@ endif()
|
|||
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
# Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
|
||||
replace_compile_flags("/we4101" " ")
|
||||
replace_compile_flags("/we4189" " ")
|
||||
add_target_compile_flags(ext2fs "/wd4189 /wd4142 /wd4101")
|
||||
else()
|
||||
|
|
|
@ -86,6 +86,7 @@ if(USE_CLANG_CL OR (NOT MSVC))
|
|||
endif()
|
||||
else()
|
||||
#disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
|
||||
replace_compile_flags("/we4101" " ")
|
||||
replace_compile_flags("/we4189" " ")
|
||||
add_target_compile_flags(reiserfs "/wd4189 /wd4142 /wd4101")
|
||||
endif()
|
||||
|
|
3
sdk/lib/3rdparty/libxml2/CMakeLists.txt
vendored
3
sdk/lib/3rdparty/libxml2/CMakeLists.txt
vendored
|
@ -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" " ")
|
||||
|
|
Loading…
Reference in a new issue