[FREETYPE][PORTCLS][RPCSS][SPOOLSV][STLPORT][USETUP][WLANSVC] Silence some clang-cl warnings.

This commit is contained in:
Amine Khaldi 2017-12-07 23:26:59 +01:00
parent 9f85ef6712
commit 5633423086
7 changed files with 33 additions and 0 deletions

View file

@ -15,6 +15,11 @@ list(APPEND SOURCE
include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos/wine)
add_executable(rpcss ${SOURCE} rpcss.rc)
if(USE_CLANG_CL)
add_target_compile_flags(rpcss "-Wno-cast-calling-convention")
endif()
target_link_libraries(rpcss ${PSEH_LIB} wine)
set_module_type(rpcss win32cui UNICODE)
add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)

View file

@ -10,6 +10,10 @@ list(APPEND SOURCE
add_executable(wlansvc ${SOURCE} wlansvc.rc)
if(USE_CLANG_CL)
add_target_compile_flags(wlansvc "-Wno-cast-calling-convention")
endif()
if(NOT MSVC)
target_link_libraries(wlansvc ${PSEH_LIB})
endif()

View file

@ -35,6 +35,11 @@ list(APPEND SOURCE
usetup.h)
add_executable(usetup ${SOURCE} usetup.rc)
if(USE_CLANG_CL)
add_target_compile_flags(usetup "-Wno-invalid-source-encoding")
endif()
target_link_libraries(usetup zlib inflib ext2lib vfatlib)
set_module_type(usetup nativecui)
add_importlibs(usetup ntdll)

View file

@ -55,6 +55,10 @@ add_library(portcls SHARED
portcls.rc
${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
if(USE_CLANG_CL)
add_target_compile_flags(portcls "-Wno-missing-braces")
endif()
target_link_libraries(portcls libcntpr ${PSEH_LIB})
set_module_type(portcls kernelmodedriver ENTRYPOINT 0 )
add_pch(portcls private.hpp SOURCE)

View file

@ -60,3 +60,7 @@ list(APPEND SOURCE
src/winfonts/winfnt.c)
add_library(freetype ${SOURCE})
if(USE_CLANG_CL)
add_target_compile_flags(freetype "-Wno-tautological-constant-compare")
endif()

View file

@ -47,5 +47,11 @@ add_library(stlport
src/cxa.c
src/c_locale.c)
if(USE_CLANG_CL)
add_target_compile_flags(stlport "-Wno-missing-braces -Wno-unused-local-typedef")
add_target_compile_flags(stlport "-Wno-infinite-recursion -Wno-deprecated-register")
add_target_compile_flags(stlport "-Wno-tautological-unsigned-zero-compare")
endif()
add_dependencies(stlport xdk)
add_pch(stlport src/stlport_prefix.h SOURCE)

View file

@ -22,6 +22,11 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c)
add_executable(spoolsv ${SOURCE} spoolsv.rc)
if(USE_CLANG_CL)
add_target_compile_flags(spoolsv "-Wno-cast-calling-convention")
endif()
set_module_type(spoolsv win32cui UNICODE)
target_link_libraries(spoolsv wine)
add_delay_importlibs(spoolsv spoolss)