mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[FREETYPE][PORTCLS][RPCSS][SPOOLSV][STLPORT][USETUP][WLANSVC] Silence some clang-cl warnings.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
+4
@@ -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()
|
||||
|
||||
+6
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user