Re: Why does load_external_function() return PGFunction? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Why does load_external_function() return PGFunction?
Date
Msg-id CA+TgmoZSws3VtWPvxKW5ch6VnGrNuvAooVuZi=E_=nwujJ369Q@mail.gmail.com
Whole thread Raw
In response to Re: Why does load_external_function() return PGFunction?  (Andres Freund <andres@anarazel.de>)
Responses Re: Why does load_external_function() return PGFunction?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Mar 26, 2018 at 4:16 PM, Andres Freund <andres@anarazel.de> wrote:
> I dug up a thread about the introduction of the warning:
> https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00423.html
>
> Sounds like we should add something like
> typedef void (*GenericFuncPtr) (void);
> or such? Similar to what Tom proposed upthread.

His proposal was void (*)() rather than void (*)(void).  I see that
the email to which you linked expects the latter, but I guess I would
have expected the former to be an intentional statement that we don't
know what the parameter list is.  My expectations may be wrong,
though, or just irrelevant.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Proposal: http2 wire format
Next
From: Andres Freund
Date:
Subject: Re: Why does load_external_function() return PGFunction?