Re: [PATCH] fix compilation with gnu89 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] fix compilation with gnu89
Date
Msg-id 1154970.1606711842@sss.pgh.pa.us
Whole thread Raw
In response to [PATCH] fix compilation with gnu89  (Rosen Penev <rosenp@gmail.com>)
List pgsql-hackers
Rosen Penev <rosenp@gmail.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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [PATCH] fix compilation with gnu89
Next
From: vignesh C
Date:
Subject: Re: Printing backtrace of postgres processes