revert 37001 (Initialize _RetVal properly in order to avoid compiler warnings) as we have PSEH2 now and don't suffer from this gcc bug anymore

svn path=/trunk/; revision=39440
This commit is contained in:
Christoph von Wittich 2009-02-06 13:33:57 +00:00
parent e88b1c8624
commit 51a928f1de

View file

@ -329,12 +329,7 @@ static void gen_proxy(type_t *iface, const var_t *func, int idx,
if (has_ret) { if (has_ret) {
print_proxy( "" ); print_proxy( "" );
write_type_decl_left(proxy, type_function_get_rettype(func->type)); write_type_decl_left(proxy, type_function_get_rettype(func->type));
print_proxy(" _RetVal;\n");
/* Initialize _RetVal properly in order to avoid compiler warnings */
if (is_ptr(type_function_get_rettype(func->type)) || is_array(type_function_get_rettype(func->type)))
print_proxy(" _RetVal = NULL;\n");
else
print_proxy(" _RetVal = 0;\n");
} }
print_proxy( "RPC_MESSAGE _RpcMessage;\n" ); print_proxy( "RPC_MESSAGE _RpcMessage;\n" );
if (has_ret) { if (has_ret) {