[APISETS][RDBSSLIB][RTL] Fix some build issues for MSVC Rls-config CORE-17402

A subset of the patch that is intended to fix all build issues in releases/0.4.14
for compiler MSVC 2010SP1 16.0.40219.1 with RosBE 2.1.6
I left out the changes for disk_new in master because the drivers sources
were replaced since the branching.

Thanks to Mark Jansen for providing the apisets part.

VBox https://reactos.org/testman/compare.php?ids=75522,75524
KVM https://reactos.org/testman/compare.php?ids=75521,75523
This commit is contained in:
Joachim Henze 2020-12-17 13:31:43 +01:00
parent 784725143e
commit 4ad7b6d634
4 changed files with 14 additions and 3 deletions

View File

@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
if(NOT MSVC)
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
else()
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273 /Oi-)
endif()
add_importlibs(${apiset_name} ${ARGN} ntdll)

View File

@ -27,7 +27,7 @@ function (add_apiset apiset_name baseaddress)
if(NOT MSVC)
target_compile_options(${apiset_name} PRIVATE -fno-builtin)
else()
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273)
target_compile_options(${apiset_name} PRIVATE /wd4026 /wd4273 /Oi-)
endif()
add_importlibs(${apiset_name} ${ARGN} ntdll)

View File

@ -3,6 +3,11 @@ add_definitions(-DUNICODE -D_UNICODE -DRDBSS_TRACKER)
include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/mup
${REACTOS_SOURCE_DIR}/sdk/lib/drivers/copysup)
if(MSVC)
# error C4101: 'BreakpointsSave' : unreferenced local variable in Release-Configuration
replace_compile_flags("/we4101" " ")
endif()
list(APPEND SOURCE
rdbss.c)

View File

@ -5,6 +5,11 @@ add_definitions(
-D_NTSYSTEM_
-D_NTDLLBUILD_)
if(MSVC)
# error C4101: unreferenced local variable in Release-Configuration due to debug logging
replace_compile_flags("/we4101" " ")
endif()
list(APPEND SOURCE
access.c
acl.c
@ -112,7 +117,8 @@ endif()
add_asm_files(rtl_asm ${ASM_SOURCE})
add_library(rtl ${SOURCE} ${rtl_asm})
add_pch(rtl rtl.h SOURCE)
#disable pch to prevent macro redefinition rtl.h WIN32_NO_STATUS
#add_pch(rtl rtl.h SOURCE)
add_dependencies(rtl psdk asm)
list(APPEND SOURCE_VISTA