Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2e02cee9
Commit
2e02cee9
authored
Nov 08, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Don't define structs types inside other struct declaration.
Fixes -Wincompatible-pointer-types clang warnings.
parent
f7cf428f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
23 deletions
+26
-23
cpp.c
dlls/msvcrt/tests/cpp.c
+26
-23
No files found.
dlls/msvcrt/tests/cpp.c
View file @
2e02cee9
...
...
@@ -891,33 +891,36 @@ static void test_rtti(void)
DEFINE_RTTI_REF
(
void
,
object_locator
);
}
*
obj_locator
;
struct
_rtti_base_descriptor
{
DEFINE_RTTI_REF
(
type_info
,
type_descriptor
);
int
num_base_classes
;
struct
{
int
this_offset
;
int
vbase_descr
;
int
vbase_offset
;
}
this_ptr_offsets
;
unsigned
int
attributes
;
};
struct
_rtti_base_array
{
DEFINE_RTTI_REF
(
struct
_rtti_base_descriptor
,
bases
[
4
]);
};
struct
_rtti_object_hierarchy
{
unsigned
int
signature
;
unsigned
int
attributes
;
int
array_len
;
DEFINE_RTTI_REF
(
struct
_rtti_base_array
,
base_classes
);
};
struct
rtti_data
{
type_info
type_info
[
4
];
struct
_rtti_base_descriptor
{
DEFINE_RTTI_REF
(
type_info
,
type_descriptor
);
int
num_base_classes
;
struct
{
int
this_offset
;
int
vbase_descr
;
int
vbase_offset
;
}
this_ptr_offsets
;
unsigned
int
attributes
;
}
base_descriptor
[
4
];
struct
_rtti_base_array
{
DEFINE_RTTI_REF
(
struct
_rtti_base_descriptor
,
bases
[
4
]);
}
base_array
;
struct
_rtti_object_hierarchy
{
unsigned
int
signature
;
unsigned
int
attributes
;
int
array_len
;
DEFINE_RTTI_REF
(
struct
_rtti_base_array
,
base_classes
);
}
object_hierarchy
;
struct
_rtti_base_descriptor
base_descriptor
[
4
];
struct
_rtti_base_array
base_array
;
struct
_rtti_object_hierarchy
object_hierarchy
;
struct
_object_locator
object_locator
;
}
simple_class_rtti
=
{
{
{
NULL
,
NULL
,
"simple_class"
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment