Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. - Mailing list pgsql-committers

From Andres Freund
Subject Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Date
Msg-id 20150220154255.GD12653@awork2.anarazel.de
Whole thread Raw
In response to Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
List pgsql-committers
On 2015-02-20 16:39:14 +0100, Andres Freund wrote:
> SI'll just include -Wno-flexible-array-extensions for now.

Even after that I get:
/home/andres/src/postgresql/src/backend/utils/adt/tsrank.c:201:2: warning: flexible array initialization is a GNU
extension
      [-Wgnu-flexible-array-initializer]
        {0}
        ^
/home/andres/src/postgresql/src/include/tsearch/ts_type.h:66:15: note: initialized flexible array member 'pos' is here
        WordEntryPos pos[FLEXIBLE_ARRAY_MEMBER];
                     ^

Not sure if somebody that supports FLEXIBLE_ARRAY_MEMBER will not
implement that extension - seems natural to me - but it might be
worthwhile fixing nonetheless.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER in a bunch more places.