mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 02:43:09 +00:00
[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.
This commit is contained in:
parent
6fe9441d32
commit
00124d1b1a
29 changed files with 113 additions and 82 deletions
|
@ -17,7 +17,7 @@ list(APPEND SOURCE
|
|||
|
||||
add_executable(advapi32_winetest ${SOURCE})
|
||||
|
||||
if(NOT MSVC)
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(advapi32_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -33,12 +33,11 @@ list(APPEND SOURCE
|
|||
testlist.c)
|
||||
|
||||
add_executable(comctl32_winetest ${SOURCE} rsrc.rc)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(comctl32_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(comctl32_winetest win32cui)
|
||||
add_importlibs(comctl32_winetest comctl32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
|
||||
add_rostests_file(TARGET comctl32_winetest)
|
||||
|
||||
if(NOT MSVC)
|
||||
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
||||
#add_target_compile_flags(comctl32_winetest "-Wno-format")
|
||||
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format")
|
||||
endif()
|
||||
|
|
|
@ -40,7 +40,7 @@ list(APPEND SOURCE
|
|||
|
||||
add_executable(kernel32_winetest ${SOURCE} resource.rc)
|
||||
|
||||
if(NOT MSVC)
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(kernel32_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -22,14 +22,17 @@ list(APPEND SOURCE
|
|||
time.c)
|
||||
|
||||
add_executable(msvcrt_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(msvcrt_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(msvcrt_winetest win32cui)
|
||||
add_importlibs(msvcrt_winetest msvcrt kernel32)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(msvcrt_winetest oldnames)
|
||||
add_importlibs(msvcrt_winetest ntdll)
|
||||
else()
|
||||
add_target_compile_flags(msvcrt_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
add_rostests_file(TARGET msvcrt_winetest)
|
||||
|
|
|
@ -33,10 +33,11 @@ if(ARCH STREQUAL "i386")
|
|||
endif()
|
||||
|
||||
add_executable(ntdll_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(ntdll_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(ntdll_winetest win32cui)
|
||||
add_importlibs(ntdll_winetest user32 ole32 advapi32 msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET ntdll_winetest)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(ntdll_winetest "-Wno-format")
|
||||
endif()
|
||||
|
|
|
@ -28,11 +28,15 @@ if(MSVC)
|
|||
endif()
|
||||
|
||||
add_executable(rpcrt4_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(rpcrt4_winetest "-Wno-format")
|
||||
if(USE_CLANG_CL)
|
||||
add_target_compile_flags(rpcrt4_winetest "-Wno-cast-calling-convention")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB})
|
||||
set_module_type(rpcrt4_winetest win32cui)
|
||||
add_importlibs(rpcrt4_winetest oleaut32 ole32 rpcrt4 secur32 advapi32 msvcrt kernel32 ntdll)
|
||||
add_rostests_file(TARGET rpcrt4_winetest)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(rpcrt4_winetest "-Wno-format")
|
||||
endif()
|
||||
|
|
|
@ -12,14 +12,12 @@ list(APPEND SOURCE
|
|||
wave.c)
|
||||
|
||||
add_executable(winmm_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(winmm_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
target_link_libraries(winmm_winetest dxguid)
|
||||
set_module_type(winmm_winetest win32cui)
|
||||
add_importlibs(winmm_winetest winmm user32 advapi32 ole32 msvcrt kernel32)
|
||||
add_rostests_file(TARGET winmm_winetest)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(winmm_winetest "-Wno-format")
|
||||
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
add_target_compile_flags(winmm_winetest "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
||||
|
||||
add_executable(ws2_32_winetest protocol.c sock.c testlist.c)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(ws2_32_winetest "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(ws2_32_winetest win32cui)
|
||||
add_importlibs(ws2_32_winetest ws2_32 user32 msvcrt kernel32)
|
||||
add_rostests_file(TARGET ws2_32_winetest)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(ws2_32_winetest "-Wno-format")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue