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>
This commit is contained in:
parent
11ef39af39
commit
1491453ea9
|
@ -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);
|
print_file(file, indent, "if (%s%s)\n", local_var_prefix, var->name);
|
||||||
indent++;
|
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
|
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_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);
|
print_file(file, indent, "if (%s%s)\n", local_var_prefix, var->name);
|
||||||
indent++;
|
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;
|
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);
|
print_file(file, indent, "if (%s%s)\n", local_var_prefix, var->name);
|
||||||
indent++;
|
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--;
|
indent--;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue