Author: tfaber
Date: Sun Oct 2 22:16:18 2011
New Revision: 53945
URL:
http://svn.reactos.org/svn/reactos?rev=53945&view=rev
Log:
[WINETESTS/CMAKE]
- Disable those unhelpful format string warnings
- Remove some unnecessary defines
Modified:
trunk/rostests/winetests/comctl32/CMakeLists.txt
trunk/rostests/winetests/kernel32/CMakeLists.txt
trunk/rostests/winetests/msvcrt/CMakeLists.txt
trunk/rostests/winetests/rpcrt4/CMakeLists.txt
trunk/rostests/winetests/setupapi/CMakeLists.txt
trunk/rostests/winetests/user32/CMakeLists.txt
trunk/rostests/winetests/winmm/CMakeLists.txt
trunk/rostests/winetests/ws2_32/CMakeLists.txt
Modified: trunk/rostests/winetests/comctl32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/comctl32/CMakeL…
==============================================================================
--- trunk/rostests/winetests/comctl32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/comctl32/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18
2011
@@ -40,6 +40,7 @@
if(MSVC)
target_link_libraries(comctl32_winetest uuid)
else()
+ add_target_compile_flags(comctl32_winetest "-Wno-format")
allow_warnings(comctl32_winetest)
endif()
Modified: trunk/rostests/winetests/kernel32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/CMakeL…
==============================================================================
--- trunk/rostests/winetests/kernel32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/kernel32/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18
2011
@@ -1,7 +1,6 @@
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
@@ -51,6 +50,7 @@
set_module_type(kernel32_winetest win32cui)
add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
if(NOT MSVC)
+ add_target_compile_flags(kernel32_winetest "-Wno-format")
allow_warnings(kernel32_winetest)
endif()
Modified: trunk/rostests/winetests/msvcrt/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/msvcrt/CMakeLis…
==============================================================================
--- trunk/rostests/winetests/msvcrt/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/msvcrt/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18 2011
@@ -25,7 +25,7 @@
if(MSVC)
target_link_libraries(msvcrt_winetest oldnames)
else()
- allow_warnings(msvcrt_winetest)
+ add_target_compile_flags(msvcrt_winetest "-Wno-format")
endif()
set_module_type(msvcrt_winetest win32cui)
Modified: trunk/rostests/winetests/rpcrt4/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/rpcrt4/CMakeLis…
==============================================================================
--- trunk/rostests/winetests/rpcrt4/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/rpcrt4/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18 2011
@@ -4,8 +4,7 @@
add_definitions(-D_WIN32_WINNT=0x500)
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
@@ -47,5 +46,6 @@
add_cd_file(TARGET rpcrt4_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
+ add_target_compile_flags(rpcrt4_winetest "-Wno-format")
allow_warnings(rpcrt4_winetest)
endif()
Modified: trunk/rostests/winetests/setupapi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/setupapi/CMakeL…
==============================================================================
--- trunk/rostests/winetests/setupapi/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/setupapi/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18
2011
@@ -1,7 +1,6 @@
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
list(APPEND SOURCE
devclass.c
@@ -21,5 +20,5 @@
add_cd_file(TARGET setupapi_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
- allow_warnings(setupapi_winetest)
+ add_target_compile_flags(setupapi_winetest "-Wno-format")
endif()
Modified: trunk/rostests/winetests/user32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/CMakeLis…
==============================================================================
--- trunk/rostests/winetests/user32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18 2011
@@ -1,7 +1,6 @@
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
set_rc_compiler()
@@ -40,5 +39,5 @@
add_cd_file(TARGET user32_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
- allow_warnings(user32_winetest)
+ add_target_compile_flags(user32_winetest "-Wno-format")
endif()
Modified: trunk/rostests/winetests/winmm/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/winmm/CMakeList…
==============================================================================
--- trunk/rostests/winetests/winmm/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/winmm/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18 2011
@@ -1,7 +1,6 @@
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
list(APPEND SOURCE
capture.c
@@ -19,5 +18,5 @@
add_cd_file(TARGET winmm_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
- allow_warnings(winmm_winetest)
+ add_target_compile_flags(winmm_winetest "-Wno-format")
endif()
Modified: trunk/rostests/winetests/ws2_32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/ws2_32/CMakeLis…
==============================================================================
--- trunk/rostests/winetests/ws2_32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/winetests/ws2_32/CMakeLists.txt [iso-8859-1] Sun Oct 2 22:16:18 2011
@@ -1,7 +1,6 @@
add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
+ -D__ROS_LONG64__)
add_executable(ws2_32_winetest protocol.c sock.c testlist.c)
target_link_libraries(ws2_32_winetest wine)
@@ -10,5 +9,6 @@
add_cd_file(TARGET ws2_32_winetest DESTINATION reactos/bin FOR all)
if(NOT MSVC)
+ add_target_compile_flags(ws2_32_winetest "-Wno-format")
allow_warnings(ws2_32_winetest)
endif()