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
bf9d15e3
Commit
bf9d15e3
authored
Jan 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use warning_at when reporting duplicate attributes.
parent
3d79c1f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
attribute.c
tools/widl/attribute.c
+7
-10
No files found.
tools/widl/attribute.c
View file @
bf9d15e3
...
...
@@ -260,16 +260,13 @@ attr_list_t *append_attr( attr_list_t *list, attr_t *attr )
if
(
!
allowed_attr
[
attr
->
type
].
multiple
)
{
LIST_FOR_EACH_ENTRY
(
attr_existing
,
list
,
attr_t
,
entry
)
if
(
attr_existing
->
type
==
attr
->
type
)
{
char
buffer
[
1024
];
snprintf
(
buffer
,
sizeof
(
buffer
),
"duplicate attribute %s
\n
"
,
get_attr_display_name
(
attr
->
type
)
);
parser_warning
(
NULL
,
buffer
);
/* use the last attribute, like MIDL does */
list_remove
(
&
attr_existing
->
entry
);
break
;
}
{
if
(
attr_existing
->
type
!=
attr
->
type
)
continue
;
warning_at
(
&
attr
->
where
,
"duplicate attribute %s
\n
"
,
get_attr_display_name
(
attr
->
type
)
);
/* use the last attribute, like MIDL does */
list_remove
(
&
attr_existing
->
entry
);
break
;
}
}
list_add_tail
(
list
,
&
attr
->
entry
);
return
list
;
...
...
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