[PATCH 5/7] widl: Cast freed pointers to void* to fix discarded-array-qualifiers warning.

Rémi Bernon rbernon at codeweavers.com
Wed Nov 13 10:13:48 CST 2019

On 11/13/19 4:49 PM, Zebediah Figura wrote:
> On 11/13/19 7:51 AM, Rémi Bernon wrote:
>> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
>> ---
>>   tools/widl/typegen.c | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
> This is for bug 39692, right?
> For what it's worth, MIDL doesn't do this. Not that that necessarily
> means we shouldn't either; just making sure it's known.
I didn't know there was a bug for that, but yes. I was just going 
through the build warnings, trying to fix them.

If we shouldn't diverge from MIDL then I guess we could otherwise 
compile the generated files with this warning disabled. It could cause 
some missing warnings in valid situations though.
Rémi Bernon <rbernon at codeweavers.com>

More information about the wine-devel mailing list