[WINETESTS] Fix warnings when compiling comctl32_winetest (#7316)

fix warnings when compiling comctl32_winetest
the comctl32 winetest just does a few things so properly mark the ros diff.
This commit is contained in:
Justin Miller
2024-10-14 14:14:56 -07:00
committed by GitHub
parent b15963abb8
commit 770adbc8a3
3 changed files with 11 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ if(MSVC AND ARCH STREQUAL "amd64")
target_compile_options(comctl32_winetest PRIVATE /wd4334)
endif()
if(MSVC)
# warning C4045: 'large_truncated_80_w': array bounds overflow
target_compile_options(comctl32_winetest PRIVATE /wd4045)
endif()
target_compile_options(comctl32_winetest PRIVATE $<$<NOT:$<C_COMPILER_ID:MSVC>>:-Wno-format>)
set_module_type(comctl32_winetest win32cui)

View File

@@ -18,6 +18,10 @@
*/
/* make sure the structures work with a comctl32 v5.x */
#ifdef __REACTOS__
#undef _WIN32_WINNT
#undef _WIN32_IE
#endif
#define _WIN32_WINNT 0x500
#define _WIN32_IE 0x500

View File

@@ -20,7 +20,9 @@
#include <stdarg.h>
#include <stdio.h>
#ifndef __REACTOS__
#define STRICT
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "commctrl.h"