Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Дата
Msg-id 21635.1424447372@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-committers
Andres Freund <andres@2ndquadrant.com> writes:
> This triggers a large number of warnings with my preexisting clang 3.6 settings...

> In file included from /home/andres/src/postgresql/src/backend/postmaster/pgstat.c:40:
> /home/andres/src/postgresql/src/include/catalog/pg_proc.h:61:12: warning: 'proargtypes' may not be nested in a struct
dueto flexible array 

That's annoying.  I saw that Sun Studio was complaining similarly, but
I figured we could ignore it.

It's weird that compiler writers have such a hard time understanding
what actually counts as a *useful* warning, ie "you've got a flexible
array embedded in the middle of a bigger struct".  Instead we get
either nothing (gcc) or pedantry (this).

            regards, tom lane


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Update PGSTAT_FILE_FORMAT_ID