Re: pg_attribute_noreturn(), MSVC, C11 - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: pg_attribute_noreturn(), MSVC, C11
Date
Msg-id 00f91261-5e2d-4553-9b18-ade7e3a484ab@eisentraut.org
Whole thread Raw
In response to Re: pg_attribute_noreturn(), MSVC, C11  (Andres Freund <andres@anarazel.de>)
Responses Re: pg_attribute_noreturn(), MSVC, C11
List pgsql-hackers
On 13.12.24 20:54, Andres Freund wrote:
> Another wrinkle: While __attribute__((noreturn)) works for function pointers
> (or function pointer typedefs) _Noreturn doesn't. Gah.  We only use it that
> way in two places, but still :(

Yeah, I wrote an experimental patch for noreturn support some years ago, 
and that was also my result back then.  (I assume you have a current 
patch, otherwise I can dig out that one.)  I had also written down that 
there were some problems with Perl and Tcl headers, FWIW.  Did you have 
any problems with those?

I think we can take a small loss here and move with the standard. 
Unless you can think of a way to define 
pg_noreturn_but_for_function_pointers in a systematic way.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_attribute_noreturn(), MSVC, C11
Next
From: Peter Eisentraut
Date:
Subject: Re: "collation" or "collation oder"