Re: [PATCH] fix compilation with gnu89

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rosen Penev <rosenp(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] fix compilation with gnu89
Date: 2020-11-30 04:50:42
Message-ID: 1154970.1606711842@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rosen Penev <rosenp(at)gmail(dot)com> writes:
> GCC 4.8.5 does not default to gnu99 or gnu11 like the newer versions.

Project policy now is to require C99 support, so the correct solution
for using an older compiler is to do something like

./configure CC="gcc -std=gnu99" ...

We're not going to accept patches to remove declarations-in-for-loops,
as that feature was actually one of the primary arguments for requiring
C99 in the first place. (Also, I'm pretty sure that there are already
considerably more than two such uses.)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2020-11-30 04:58:56 Re: Printing backtrace of postgres processes
Previous Message Andres Freund 2020-11-30 04:49:44 Re: [PATCH] fix compilation with gnu89