Skip to content

Commit 770adbc

Browse files
authored
[WINETESTS] Fix warnings when compiling comctl32_winetest (reactos#7316)
fix warnings when compiling comctl32_winetest the comctl32 winetest just does a few things so properly mark the ros diff.
1 parent b15963a commit 770adbc

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

modules/rostests/winetests/comctl32/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ if(MSVC AND ARCH STREQUAL "amd64")
4747
target_compile_options(comctl32_winetest PRIVATE /wd4334)
4848
endif()
4949

50+
if(MSVC)
51+
# warning C4045: 'large_truncated_80_w': array bounds overflow
52+
target_compile_options(comctl32_winetest PRIVATE /wd4045)
53+
endif()
54+
5055
target_compile_options(comctl32_winetest PRIVATE $<$<NOT:$<C_COMPILER_ID:MSVC>>:-Wno-format>)
5156

5257
set_module_type(comctl32_winetest win32cui)

modules/rostests/winetests/comctl32/rebar.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
*/
1919

2020
/* make sure the structures work with a comctl32 v5.x */
21+
#ifdef __REACTOS__
22+
#undef _WIN32_WINNT
23+
#undef _WIN32_IE
24+
#endif
2125
#define _WIN32_WINNT 0x500
2226
#define _WIN32_IE 0x500
2327

modules/rostests/winetests/comctl32/static.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
#include <stdarg.h>
2121
#include <stdio.h>
2222

23+
#ifndef __REACTOS__
2324
#define STRICT
25+
#endif
2426
#define WIN32_LEAN_AND_MEAN
2527
#include <windows.h>
2628
#include "commctrl.h"

0 commit comments

Comments
 (0)