Fix gcc warnings in generated client stub.

svn path=/trunk/; revision=14009
This commit is contained in:
Eric Kohl 2005-03-13 14:49:59 +00:00
parent 29bd3ad1f9
commit 28eb04c4db
2 changed files with 17 additions and 5 deletions

View file

@ -1,6 +1,13 @@
ChangeLog
2005-03-12 ekohl
2005-03-13 ekohl
tools/widl/client.c
Fix gcc warnings in generated client stub.
2005-03-13 ekohl
tools/widl/client.c
tools/widl/server.c

View file

@ -273,6 +273,8 @@ static void print_message_buffer_size(func_t *func)
{
size = 12;
alignment = 0;
if (last_size != -1)
fprintf(client, " +");
fprintf(client, " %dU", (size == 0) ? 0 : size + alignment);
nothing_printed = 0;
}
@ -880,8 +882,11 @@ static void write_function_stubs(type_t *iface)
static void write_bindinghandledecl(type_t *iface)
{
print_client("static RPC_BINDING_HANDLE %s__MIDL_AutoBindHandle;\n", iface->name);
fprintf(client, "\n");
if (!get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE))
{
print_client("static RPC_BINDING_HANDLE %s__MIDL_AutoBindHandle;\n", iface->name);
fprintf(client, "\n");
}
}
@ -903,9 +908,9 @@ static void write_stubdescriptor(type_t *iface)
print_client("MIDL_user_allocate,\n");
print_client("MIDL_user_free,\n");
if (implicit_handle)
print_client("&%s,\n", implicit_handle);
print_client("{&%s},\n", implicit_handle);
else
print_client("&%s__MIDL_AutoBindHandle,\n", iface->name);
print_client("{&%s__MIDL_AutoBindHandle},\n", iface->name);
print_client("0,\n");
print_client("0,\n");
print_client("0,\n");