mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
Initialize _RetVal properly in order to avoid compiler warnings.
svn path=/trunk/; revision=37001
This commit is contained in:
parent
d0c2deb15d
commit
53177f48f4
1 changed files with 6 additions and 1 deletions
|
@ -267,7 +267,12 @@ static void gen_proxy(type_t *iface, const func_t *cur, int idx,
|
||||||
if (has_ret) {
|
if (has_ret) {
|
||||||
print_proxy( "" );
|
print_proxy( "" );
|
||||||
write_type_decl_left(proxy, get_func_return_type(cur));
|
write_type_decl_left(proxy, get_func_return_type(cur));
|
||||||
print_proxy( " _RetVal;\n");
|
|
||||||
|
/* Initialize _RetVal properly in order to avoid compiler warnings */
|
||||||
|
if (is_ptr(get_func_return_type(cur)) || is_array(get_func_return_type(cur)))
|
||||||
|
print_proxy(" _RetVal = NULL;\n");
|
||||||
|
else
|
||||||
|
print_proxy(" _RetVal = 0;\n");
|
||||||
}
|
}
|
||||||
print_proxy( "RPC_MESSAGE _RpcMessage;\n" );
|
print_proxy( "RPC_MESSAGE _RpcMessage;\n" );
|
||||||
print_proxy( "MIDL_STUB_MESSAGE _StubMsg;\n" );
|
print_proxy( "MIDL_STUB_MESSAGE _StubMsg;\n" );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue