diff --git a/drivers/filesystems/ext2/CMakeLists.txt b/drivers/filesystems/ext2/CMakeLists.txt index 94b077b0c45..864962d9ecc 100644 --- a/drivers/filesystems/ext2/CMakeLists.txt +++ b/drivers/filesystems/ext2/CMakeLists.txt @@ -94,8 +94,8 @@ endif() if(MSVC AND (NOT USE_CLANG_CL)) # Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include" - replace_compile_flags("/we\"4189\"" " ") - add_target_compile_flags(ext2fs "/wd\"4189\" /wd\"4142\" /wd\"4101\"") + replace_compile_flags("/we4189" " ") + add_target_compile_flags(ext2fs "/wd4189 /wd4142 /wd4101") else() add_target_compile_flags(ext2fs "-Wno-pointer-sign -Wno-unused-function") add_target_compile_flags(ext2fs "-Wno-unused-variable -Wno-missing-braces") diff --git a/drivers/filesystems/reiserfs/CMakeLists.txt b/drivers/filesystems/reiserfs/CMakeLists.txt index 95d70eaf016..9bbfe3775df 100644 --- a/drivers/filesystems/reiserfs/CMakeLists.txt +++ b/drivers/filesystems/reiserfs/CMakeLists.txt @@ -86,8 +86,8 @@ if(USE_CLANG_CL OR (NOT MSVC)) endif() else() #disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include" - replace_compile_flags("/we\"4189\"" " ") - add_target_compile_flags(reiserfs "/wd\"4189\" /wd\"4142\" /wd\"4101\"") + replace_compile_flags("/we4189" " ") + add_target_compile_flags(reiserfs "/wd4189 /wd4142 /wd4101") endif() target_link_libraries(reiserfs memcmp ${PSEH_LIB})