widl: Fix a GCC warning in the generated client and server code.

This commit is contained in:
Robert Shearman 2006-03-31 12:46:28 +01:00 committed by Alexandre Julliard
parent 4cd506b8fd
commit 73ff576554
2 changed files with 8 additions and 0 deletions

View File

@ -360,10 +360,14 @@ static void write_stubdescriptor(type_t *iface, int expr_eval_routines)
print_client("(void *)& %s___RpcClientInterface,\n", iface->name); print_client("(void *)& %s___RpcClientInterface,\n", iface->name);
print_client("MIDL_user_allocate,\n"); print_client("MIDL_user_allocate,\n");
print_client("MIDL_user_free,\n"); print_client("MIDL_user_free,\n");
print_client("{\n");
indent++;
if (implicit_handle) if (implicit_handle)
print_client("&%s,\n", implicit_handle); print_client("&%s,\n", implicit_handle);
else else
print_client("&%s__MIDL_AutoBindHandle,\n", iface->name); print_client("&%s__MIDL_AutoBindHandle,\n", iface->name);
indent--;
print_client("},\n");
print_client("0,\n"); print_client("0,\n");
print_client("0,\n"); print_client("0,\n");
if (expr_eval_routines) if (expr_eval_routines)

View File

@ -494,7 +494,11 @@ static void write_stubdescriptor(type_t *iface, int expr_eval_routines)
print_server("(void *)& %s___RpcServerInterface,\n", iface->name); print_server("(void *)& %s___RpcServerInterface,\n", iface->name);
print_server("MIDL_user_allocate,\n"); print_server("MIDL_user_allocate,\n");
print_server("MIDL_user_free,\n"); print_server("MIDL_user_free,\n");
print_server("{\n");
indent++;
print_server("0,\n"); print_server("0,\n");
indent--;
print_server("},\n");
print_server("0,\n"); print_server("0,\n");
print_server("0,\n"); print_server("0,\n");
if (expr_eval_routines) if (expr_eval_routines)