Re: C11 / VS 2019

David Rowley <dgrowleyml@gmail.com>

From: David Rowley <dgrowleyml@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-07-29T22:11:01Z
Lists: pgsql-hackers
On Wed, 30 Jul 2025 at 00:57, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> David Rowley <dgrowleyml@gmail.com> writes:
> > On Fri, 18 Jul 2025 at 23:12, Peter Eisentraut <peter@eisentraut.org> wrote:
> >> Note that gcc and clang switched to C11 by default a long time ago
> >> (gcc-5 and clang-3.6), so for most users all these tests won't need to
> >> do anything.  If you want to test it, you could simulate an older
> >> default like
> >> ./configure CC='gcc -std=c99'
>
> > On Linux, doing a bit more testing using meson and clang, I tried with
> > CC=clang CFLAGS=-std=c99 . I get:
>
> Note that that's not what Peter suggested.  That leads to

OK, thanks. There are no issues when I use CC="clang -std=c99" meson setup ...

David



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Raise C requirement to C11

  2. meson: Move C99 test earlier

  3. Enable MSVC conforming preprocessor

  4. Make parseNodeString() C idiom compatible with Visual Studio 2015.