Re: Fix C23 compiler warning - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix C23 compiler warning
Date
Msg-id 7bf50907-ef73-47d0-bbc0-5c2a8ff1859f@eisentraut.org
Whole thread Raw
In response to Re: Fix C23 compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix C23 compiler warning
List pgsql-hackers
On 22.10.24 08:41, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> writes:
>> Committed with that change.  Thanks.
> 
> Should we back-patch this?  (And also a67a49648d9?)  It's
> not hard to imagine people wanting to compile our stable
> branches with C23 compilers.  I might leave out v12, which
> is just days away from EOL, but this seems like a reasonable
> change for all the later branches.

One thing I didn't realize until today is that currently C23 
compilations only work with meson.  The autoconf version we are using 
doesn't support it, and the configure results it produces are somehow 
faulty and then you get a bunch of compilation errors.  So if we wanted 
to make this a supported thing, it looks like we would need to use at 
least autoconf 2.72.

So this then ties into further questions, like the future of autoconf 
support.  Also, I think the compilers themselves are still finalizing 
their C23 support.  (gcc-14 doesn't use the correct __STDC_VERSION__ 
version yet.)  So I'm content to wait a little bit and see if there are 
more adjustments needed in the future.  Maybe when gcc-15 comes out 
we'll have a more solid baseline.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fix C23 compiler warning
Next
From: Hosney Osman
Date:
Subject: Proposal for Integrating Data Masking and anonymization into PostgreSQL