Pavel Stehule wrote:
>       else
>       {
>               ereport(ERROR,
>                               (errcode(ERRCODE_INVALID_FUNCTION_DEFINITION),
>                                errmsg("function result type must be 
> specified")));
>               /* Alternative possibility: default to RETURNS VOID */
> 
> /* WHY FOLOWING LINES? */
>               prorettype = VOIDOID;
>               returnsSet = false;
>       }

To keep the compiler quiet about using the variables uninitialized. The
compiler doesn't know that ereport(ERROR) never returns.

-- 
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to