Re: [PATCH] fix compilation with gnu89

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] fix compilation with gnu89
Дата
Msg-id 1154970.1606711842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] fix compilation with gnu89  (Rosen Penev <rosenp@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [PATCH] fix compilation with gnu89
Следующее
От: vignesh C
Дата:
Сообщение: Re: Printing backtrace of postgres processes