Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1491453e
Commit
1491453e
authored
Nov 13, 2019
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Cast freed pointers to void* to fix discarded-array-qualifiers warning.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11ef39af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
typegen.c
tools/widl/typegen.c
+3
-3
No files found.
tools/widl/typegen.c
View file @
1491453e
...
...
@@ -4286,7 +4286,7 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
{
print_file
(
file
,
indent
,
"if (%s%s)
\n
"
,
local_var_prefix
,
var
->
name
);
indent
++
;
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(
(void*)
%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
}
}
else
...
...
@@ -4361,7 +4361,7 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
print_phase_function
(
file
,
indent
,
array_type
,
local_var_prefix
,
phase
,
var
,
start_offset
);
print_file
(
file
,
indent
,
"if (%s%s)
\n
"
,
local_var_prefix
,
var
->
name
);
indent
++
;
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(
(void*)
%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
break
;
}
}
...
...
@@ -4463,7 +4463,7 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
{
print_file
(
file
,
indent
,
"if (%s%s)
\n
"
,
local_var_prefix
,
var
->
name
);
indent
++
;
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
print_file
(
file
,
indent
,
"__frame->_StubMsg.pfnFree(
(void*)
%s%s);
\n
"
,
local_var_prefix
,
var
->
name
);
indent
--
;
}
break
;
...
...
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